Skip to content

Commit

Permalink
If we don't have an exception message, print out the same error about…
Browse files Browse the repository at this point in the history
… not having a message as we used to. This reclaims several more tests
  • Loading branch information
Whiteknight committed Aug 19, 2011
1 parent 757cbb3 commit 5d58bbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/parrot2/prt0.pir
Expand Up @@ -186,6 +186,10 @@
interp = getinterp
stderr_pmc = interp.'stderr_handle'()
message = exception["message"]
$I0 = length message
unless $I0 == 0 goto __have_message
message = "No exception handler and no message"
__have_message:
stderr_pmc.'print'(message)
stderr_pmc.'print'("\n")

Expand Down

0 comments on commit 5d58bbf

Please sign in to comment.