We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5983e86 commit 501d583Copy full SHA for 501d583
lib/moodle_rb/utility.rb
@@ -29,7 +29,7 @@ def key_value_query_format(hash)
29
30
def check_for_errors(response)
31
return unless error_response?(response)
32
- raise MoodleError.new(response.parsed_response)
+ raise MoodleError.new(response.parsed_response.presence || response.response.inspect)
33
end
34
35
private
0 commit comments