Print bad value in failure.

parent 1306c8b6
Pipeline #133836 passed with stage
in 50 seconds
......@@ -16,7 +16,7 @@ module GitLab
end
def add(name, value, quantile = false, **labels)
fail "value must be a number" unless value.is_a?(Numeric)
fail "value '#{value}' must be a number" unless value.is_a?(Numeric)
if quantile
@quantiles[{ name: name, labels: labels }] << value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment