Merge pull request #1855 from take-cheeze/fix_mrbc_compile_error

Fix compile error check of Mrbc command.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-03-14 07:39:53 +09:00
+1 -1
View File
@@ -271,7 +271,7 @@ module MRuby
out.puts io.read
end
# if mrbc execution fail, drop the file
unless $?.exitstatus
if $?.exitstatus != 0
File.delete(out.path)
exit(-1)
end