diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mruby/build/command.rb | 6 | ||||
| -rw-r--r-- | lib/mruby/core_ext.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/mruby/build/command.rb b/lib/mruby/build/command.rb index e6becd3f6..6b8aca04a 100644 --- a/lib/mruby/build/command.rb +++ b/lib/mruby/build/command.rb @@ -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 diff --git a/lib/mruby/core_ext.rb b/lib/mruby/core_ext.rb index 3b2406c36..c404bfec9 100644 --- a/lib/mruby/core_ext.rb +++ b/lib/mruby/core_ext.rb @@ -27,7 +27,7 @@ def install_D(src, dst) end def _pp(cmd, src, tgt=nil, indent: nil) - return if Rake.verbose + return if Rake.application.options.silent width = 5 template = indent ? "%#{width * indent}s %s %s" : "%-#{width}s %s %s" |
