Unverified Commit c6c0b796 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #5181 from shuujii/raise-an-exception-instead-of-exiting-when-mrbc-fails

Raise an exception instead of exiting when `mrbc` fails
parents b1ee8928 2b0f9080
......@@ -317,9 +317,9 @@ module MRuby
out.puts io.read
end
# if mrbc execution fail, drop the file
if $?.exitstatus != 0
File.delete(out.path)
exit(-1)
unless $?.success?
rm_f out.path
fail "Command failed with status (#{$?.exitstatus}): [#{cmd[0,42]}...]"
end
end
end
......
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