diff --git a/lib/cms_scanner/errors/http.rb b/lib/cms_scanner/errors/http.rb index a65ee5ab..5f027582 100644 --- a/lib/cms_scanner/errors/http.rb +++ b/lib/cms_scanner/errors/http.rb @@ -64,7 +64,7 @@ def initialize(url) def to_s "The URL supplied redirects to #{redirect_uri}. Use the --ignore-main-redirect "\ - 'option to ignore the redirection and scan the target.' + 'option to ignore the redirection and scan the target, or change the --url option value to the redirected URL.' end end end diff --git a/spec/app/controllers/core_spec.rb b/spec/app/controllers/core_spec.rb index eb8d3b89..53a095cd 100644 --- a/spec/app/controllers/core_spec.rb +++ b/spec/app/controllers/core_spec.rb @@ -153,7 +153,8 @@ expect { core.before_scan }.to raise_error( CMSScanner::Error::HTTPRedirect, "The URL supplied redirects to #{redirection}." \ - ' Use the --ignore-main-redirect option to ignore the redirection and scan the target.' + ' Use the --ignore-main-redirect option to ignore the redirection and scan the target,' \ + ' or change the --url option value to the redirected URL.' ) end end