Skip to content
Snippets Groups Projects

Add request body to output in server error cases for easier debugging

Merged Martin Lowe requested to merge malowe/main/eca-script-debug into main
2 unresolved threads
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
+ 2
0
@@ -161,6 +161,8 @@ begin
parsed_response = MultiJson.load(response.body)
rescue MultiJson::ParseError
puts "GL-HOOK-ERR: Unable to validate commit, server error encountered.\n\nPlease contact the administrator, and retry the commit at a later time.\n\n"
## Additional information for debugging - request will allow us to easily retest exact output and find errors in render
puts "Request body: #{MultiJson.dump(json_data)}\n\n"
exit 1
else
## Tracks if warnings/errors were issued for request
Loading