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:
Loïc Guitaut
2024-06-13 11:55:57 +02:00
committed by Loïc Guitaut
parent 47540fb4e0
commit c790c57415
3 changed files with 10 additions and 2 deletions

View File

@@ -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