summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-10-13 10:33:41 -0700
committerjblake+piny@omgwallhack.org <jblake@omgwallhack.org>2010-10-13 10:33:41 -0700
commit729ddadd9af045dda9b0180ce0de705eb3837082 (patch)
treee497ec1330a4a8fcfa695b3a77933ff701d89898 /usr
parent77a280d36dfa31d6bcc95f6469800c1c5a20d29d (diff)
downloadpiny-code-729ddadd9af045dda9b0180ce0de705eb3837082.tar.gz
piny-code-729ddadd9af045dda9b0180ce0de705eb3837082.zip
Correct error handling somewhat.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/src/pinyadmin/bin/pinyconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/pinyadmin/bin/pinyconfig b/usr/src/pinyadmin/bin/pinyconfig
index e18ac30..ac91c09 100755
--- a/usr/src/pinyadmin/bin/pinyconfig
+++ b/usr/src/pinyadmin/bin/pinyconfig
@@ -20,7 +20,7 @@ if ( defined $value ) {
eval {
$repo->config->$attr( $value );
};
- if ( defined $@ ) {
+ if ( $@ ) {
print STDERR "$attr is not a legal tweakable, or $value is not a legal value for that tweakable.\n$@\n";
};
};
@@ -29,6 +29,6 @@ undef $@;
eval {
print "$attr = " . $repo->config->$attr . "\n";
};
-if ( defined $@ ) {
+if ( $@ ) {
print STDERR "$attr is not a legal tweakable, or its current value is illegal.\n$@\n";
};