We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2497db0 + 4dc4f0b commit a510b3bCopy full SHA for a510b3b
1 file changed
lib/prometheus/api_client/client.rb
@@ -102,8 +102,8 @@ def run_command(command, options)
102
response = get(command, options)
103
104
JSON.parse(response.body)['data']
105
- rescue
106
- raise RequestError, 'Bad response from server'
+ rescue StandardError => err
+ raise RequestError, err.message
107
end
108
109
# Helper function to evalueate the low level proxy option
0 commit comments