From 6168c115630469d9ace083fb785719f212d0157c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Jul 2009 11:49:06 +0200 Subject: envstore: Try to produce slightly more helpful error messages --- bin/envstore | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/envstore b/bin/envstore index 42284a0..b9d6d66 100755 --- a/bin/envstore +++ b/bin/envstore @@ -31,12 +31,12 @@ sub check_store { } ($mode, $uid) = (stat($store_file))[2,4]; if ($uid != $<) { - print STDERR "envstore: store file not owned by us\n"; + print STDERR "envstore: store file is insecure (not owned by us)\n"; exit(1); } $mode &= 0x00077; if ($mode > 0) { - print STDERR "envstore: store file writable by group/others\n"; + print STDERR "envstore: store file is insecure (writable by group/others)\n"; exit(1); } return(1); @@ -58,7 +58,7 @@ sub get_keyvalue { if (exists($ENV{$key})) { $value = $ENV{$key}; } else { - print STDERR "No such parameter: $key\n"; + print STDERR "No such parameter: $key (perhaps you forgot to export it?)\n"; exit(1); } } -- cgit v1.2.3