mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Show parameters on a service contract failure
Now, when calling `StepsInspector#error` on a contract failure, the output will contain the parameters provided to the contract.
This commit is contained in:
committed by
Loïc Guitaut
parent
47540fb4e0
commit
c790c57415
@@ -73,7 +73,7 @@ class StepsInspector
|
||||
# @!visibility private
|
||||
class Contract < Step
|
||||
def error
|
||||
step_result.errors.inspect
|
||||
"#{step_result.errors.inspect}\n\nProvided parameters: #{step_result.parameters.pretty_inspect}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user