Skip to content

Commit

Permalink
[Core] don't return values from Parrot.try_report, it cases problems …
Browse files Browse the repository at this point in the history
…because p and n might not get set if the routine errors out
  • Loading branch information
Whiteknight committed Sep 4, 2012
1 parent 01d6f0c commit 9c48367
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/Parrot.winxed
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ namespace Rosella.Parrot
var p;
var n;
try {
:(p [slurpy], n [slurpy,named]) = sub();
/*:(p [slurpy], n [slurpy,named]) = */sub();
} catch (e) {
var fmt = Rosella.Parrot.exception_formatter();
handle.print(fmt.format_default(e));
out.print(fmt.format_default(e));
}

if (handles != null)
Rosella.IO.swap_handles(handles);

return p:[flat], n:[flat,named];
/*return p:[flat], n:[flat,named];*/
}

// private routine. Format backtrace information into an array of
Expand Down

0 comments on commit 9c48367

Please sign in to comment.