Skip to content

Commit e8bc3dd

Browse files
committed
Show error code and error message in NotImplementedError
1 parent cc3386f commit e8bc3dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/help_scout.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def create_conversation(data)
3232
# Validation failed so return the errors
3333
raise ValidationError, last_response.parsed_response["message"]
3434
else
35-
raise NotImplementedError, "Help Scout returned something that is not implemented by the help_scout gem yet. Sorry."
35+
raise NotImplementedError, "Help Scout returned something that is not implemented by the help_scout gem yet: #{last_response.code}: #{last_response.parsed_response["message"] if last_response.parsed_response}"
3636
end
3737
end
3838

lib/help_scout/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class HelpScout
2-
VERSION = "0.2.0"
2+
VERSION = "0.2.1"
33
end

0 commit comments

Comments
 (0)