Skip to content

Commit

Permalink
fix(error): output more information
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Sep 5, 2024
1 parent d78b059 commit 1140e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/placeos/api/error.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class PlaceOS::Client::API::Error < Exception
# Shouldn't ever be passed through here...
raise ArgumentError.new "response is valid"
else
new response.status_message || "HTTP error #{response.status_code}"
new response.status_message || "HTTP error #{response.status_code}\n#{response.body}"
end
end
end

0 comments on commit 1140e25

Please sign in to comment.