Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:rakudo/rakudo
Browse files Browse the repository at this point in the history
  • Loading branch information
cspencer committed Apr 18, 2009
2 parents 669fb45 + 27b0b76 commit a58fce6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/builtins/control.pir
Expand Up @@ -46,13 +46,16 @@ the moment -- we'll do more complex handling a bit later.)
=cut
.sub '!FAIL'
.param string value :optional
.param int has_value :opt_flag
if has_value goto have_value
value = 'Use of uninitialized value'
have_value:
.param pmc args :slurpy
if args goto message_args
.local string message
message = 'Use of uninitialized value'
goto have_message
message_args:
message = join '', args
have_message:
$P0 = new 'Exception'
$P0['message'] = value
$P0['message'] = message
$P1 = new 'Failure'
setattribute $P1, '$!exception', $P0
.return ($P1)
Expand Down

0 comments on commit a58fce6

Please sign in to comment.