Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
nicer error message of &evalfiles
  • Loading branch information
Filip Sergot committed Feb 26, 2012
1 parent d44ab2e commit aee97aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/HLL/Compiler.pm
Expand Up @@ -398,10 +398,13 @@ class HLL::Compiler {
pir::push(@codes, $in-handle.readall($_));
$in-handle.close;
CATCH {
$err := "Error while reading from file: $_";
$err := 1;
}
}
pir::die($err) if $err;
if $err {
say("Cannot open \"$_\".");
pir::exit(1);
}
}
my $code := pir::join('', @codes);
my $?FILES := pir::join(' ', @files);
Expand Down

0 comments on commit aee97aa

Please sign in to comment.