scripts/kconfig.pl: Indicate which file we couldn't open
authorJohn Crispin <john@openwrt.org>
Sun, 19 Jan 2014 17:27:04 +0000 (17:27 +0000)
committerJohn Crispin <john@openwrt.org>
Sun, 19 Jan 2014 17:27:04 +0000 (17:27 +0000)
Signed-off-by: Daniel Colascione <dancol@dancol.org>
SVN-Revision: 39327

scripts/kconfig.pl

index b91cdf397aa828f28e6533b82fc5a54b0144ef4a..45c565e7a992c06e36cb64acd73a54fa65b4b0a1 100755 (executable)
@@ -29,7 +29,7 @@ sub load_config($$) {
        my $mod_plus = shift;
        my %config;
 
-       open FILE, "$file" or die "can't open file";
+       open FILE, "$file" or die "can't open file '$file'";
        while (<FILE>) {
                chomp;
                /^$PREFIX(.+?)=(.+)/ and do {