Skip to content

Commit

Permalink
open() should fail, not die.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jun 27, 2010
1 parent 2334011 commit 56d8874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/IO.pm
Expand Up @@ -97,7 +97,7 @@ sub open($filename, :$r, :$w, :$a) {
my $mode = $w ?? 'w' !! ($a ?? 'wa' !! 'r');
my $PIO = pir::open__PSS($filename, $mode);
unless pir::istrue__IP($PIO) {
die("Unable to open file '$filename'");
fail("Unable to open file '$filename'");
}
$PIO.encoding('utf8');
IO.new(:$PIO)
Expand Down

0 comments on commit 56d8874

Please sign in to comment.