git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2018-01-29 17:05:41 +00:00
Родитель 3fa5bd38af
Коммит be264f4a65
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -91,10 +91,10 @@ else
end
using DebugPOpen
module DebugSystem
def system(*args, exception: true, **opts)
def system(*args, **opts)
STDERR.puts [*args, **opts].inspect if $DEBUG
if RUBY_VERSION >= "2.6"
opts[:exception] = exception
opts[:exception] = true unless opts.key?(:exception)
end
ret = super(*args, **opts)
raise "Command failed with status (#$?): #{args[0]}" if exception and !ret