Skip to content

Commit

Permalink
Correct missing URL error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoehaines committed Oct 1, 2021
1 parent 92ecb9b commit 94702d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/bugsnag/endpoint_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ def self.validate(endpoints)
class Result
# rubocop:disable Layout/LineLength
MISSING_URLS = "Invalid configuration. endpoints must be set with both a notify and session URL. Bugsnag will not send any requests.".freeze
MISSING_NOTIFY_URL = "Invalid configuration. endpoints.notify cannot be set without also setting endpoints.sessions. Sessions will not be sent to Bugsnag.".freeze
MISSING_SESSION_URL = "Invalid configuration. endpoints.sessions cannot be set without also setting endpoints.notify. Bugsnag will not send any requests.".freeze
MISSING_NOTIFY_URL = "Invalid configuration. endpoints.sessions cannot be set without also setting endpoints.notify. Bugsnag will not send any requests.".freeze
MISSING_SESSION_URL = "Invalid configuration. endpoints.notify cannot be set without also setting endpoints.sessions. Bugsnag will not send any sessions.".freeze

INVALID_URLS = "Invalid configuration. endpoints should be valid URLs, got empty strings. Bugsnag will not send any requests.".freeze
INVALID_NOTIFY_URL = "Invalid configuration. endpoints.notify should be a valid URL, got empty string. Sessions will not be sent to Bugsnag.".freeze
INVALID_SESSION_URL = "Invalid configuration. endpoints.sessions should be a valid URL, got empty string. Bugsnag will not send any requests.".freeze
INVALID_NOTIFY_URL = "Invalid configuration. endpoints.notify should be a valid URL, got empty string. Bugsnag will not send any requests.".freeze
INVALID_SESSION_URL = "Invalid configuration. endpoints.sessions should be a valid URL, got empty string. Bugsnag will not send any sessions.".freeze
# rubocop:enable Layout/LineLength

attr_reader :reason
Expand Down

0 comments on commit 94702d3

Please sign in to comment.