Commit 7f2bdb5c authored by Mike Hibler's avatar Mike Hibler

Give a slightly better error message for a non-existent file.

parent 220e33e2
......@@ -106,6 +106,9 @@ else {
# Use realpath to resolve any symlinks.
#
my $translated = realpath($tempfile);
if (!defined($translated)) {
fatal("No such file: $tempfile\n");
}
if ($translated =~ /^([-\w\.\/]+)$/) {
$tempfile = $1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment