]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Improve an error message
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 31 Oct 2019 21:39:40 +0000 (22:39 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 31 Oct 2019 21:39:40 +0000 (22:39 +0100)
novaboot

index 2b2f423770324cce9ff192489045bc29052191ec..ed347cfd838f574a8a15da2f11755d76bda4df33 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -995,7 +995,7 @@ foreach my $script (@scripts) {
            $hostname = "";
        }
        my $files = join(" ", map({ ($file) = m/([^ ]*)/; $file; } ( @$modules, @bootloader_configs, @$copy)));
-       map({ my $file = (split)[0]; die "$file: $!" if ! -f $file; } @$modules);
+       map({ my $file = (split)[0]; die "Not a file: $file: $!" if ! -f $file; } @$modules);
        my $istty = -t STDOUT && ($ENV{'TERM'} || 'dumb') ne 'dumb';
        my $progress = $istty ? "--progress" : "";
        if ($files) {