Skip to content
Browse files

Make exception message to contain command with interpolations.

  • Loading branch information...
1 parent 7b4383d commit c788e5a61e62ecc71bb38dc6346953a4132d630a @hron hron committed with jyurek
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cocaine/command_line.rb
View
2 lib/cocaine/command_line.rb
@@ -88,7 +88,7 @@ def run(interpolations = {})
end
unless @expected_outcodes.include?($?.exitstatus)
message = [
- "Command '#{command}' returned #{$?.exitstatus}. Expected #{@expected_outcodes.join(", ")}",
+ "Command '#{full_command}' returned #{$?.exitstatus}. Expected #{@expected_outcodes.join(", ")}",
"Here is the command output:\n",
output
].join("\n")

0 comments on commit c788e5a

Please sign in to comment.
Something went wrong with that request. Please try again.