rstrip.sh: fix handling variations in "file" output
[openwrt/openwrt.git] / scripts / kconfig.pl
index b91cdf397aa828f28e6533b82fc5a54b0144ef4a..6a6bbd27472b929005e22f42498057603c8ae457 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env perl
 # 
-# Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org>
+# Copyright (C) 2006 Felix Fietkau <nbd@nbd.name>
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -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 {