Skip to content

Commit

Permalink
Updates error message when main redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanlr committed Apr 18, 2019
1 parent cc0a152 commit cd46584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cms_scanner/errors/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion spec/app/controllers/core_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd46584

Please sign in to comment.