Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow opening non-existing file with 'use fatal'
leont++ for reporting
  • Loading branch information
lizmat committed Feb 23, 2015
1 parent bb3a3df commit c8d3e64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/IO/Handle.pm
Expand Up @@ -49,7 +49,8 @@ my class IO::Handle does IO {
return self;
}

fail (X::IO::Directory.new(:$!path, :trying<open>)) if $!path.d;
fail (X::IO::Directory.new(:$!path, :trying<open>))
if $!path.e && $!path.d;
$r = $w = True if $rw;

if $p {
Expand Down

0 comments on commit c8d3e64

Please sign in to comment.