Skip to content

Dumping and loading an Exception loses the backtrace information. #86

Open
Fryguy opened this Issue Sep 29, 2012 · 0 comments

1 participant

@Fryguy
Fryguy commented Sep 29, 2012

Dumping and loading an Exception loses the backtrace information. The following test demonstrates this.

def test_exception_should_have_backtrace
  err = 1 / 0 rescue $!
  assert_not_nil err.backtrace
  assert_not_nil YAML.load(YAML.dump(err)).backtrace
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.