Commit 81fa3ac

mo <mo.khan@gmail.com>
2018-12-02 22:31:18
print exit code.
1 parent 88353ca
Changed files (1)
spec
spec/support/shell_helper.rb
@@ -6,7 +6,7 @@ RSpec.configure do |config|
   config.include(Module.new do
     def execute_shell(command)
       puts `#{command}`
-      raise "command failed: #{command}" unless $CHILD_STATUS.success?
+      raise "command failed (#{$CHILD_STATUS}): #{command}" unless $CHILD_STATUS.success?
     end
   end)
 end