You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
begin
output = `ruby -c fdasfdsasda 2>&1`
rescue
puts "Got a rescue"
end
if $?.exitstatus != 0
puts output
exit $?.exitstatus
end
I get an exception traceback. Furthermore it doesn't seem that is handled by the rescue. In MRI 1.8.7 and 1.9.x one doesn't get an exception raised. Instead $? is set which is what I'd expect in Rubinius.
The text was updated successfully, but these errors were encountered:
There is no exception raised in either MRI nor rbx because the error occurs in a sub-proces only. Rubinius differs in that it shows Errno::ENOENT instead of LoadError and it displays a backtrace, but otherwise it's the same.
When I run:
I get an exception traceback. Furthermore it doesn't seem that is handled by the rescue. In MRI 1.8.7 and 1.9.x one doesn't get an exception raised. Instead $? is set which is what I'd expect in Rubinius.
The text was updated successfully, but these errors were encountered: