Skip to content

Commit 501d583

Browse files
committed
Extends error response
1 parent 5983e86 commit 501d583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/moodle_rb/utility.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def key_value_query_format(hash)
2929

3030
def check_for_errors(response)
3131
return unless error_response?(response)
32-
raise MoodleError.new(response.parsed_response)
32+
raise MoodleError.new(response.parsed_response.presence || response.response.inspect)
3333
end
3434

3535
private

0 commit comments

Comments
 (0)