summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-10-16 21:49:21 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-10-16 21:49:21 -0700
commit8dc0563bd0ee69ae7efd8a13eb5ead81885df597 (patch)
treed5f1eb142f4fc614eb377e8e1c757085953eab7f /usr
parentf6e7039bf894c8241125622776720037aef620a2 (diff)
downloadpiny-code-8dc0563bd0ee69ae7efd8a13eb5ead81885df597.tar.gz
piny-code-8dc0563bd0ee69ae7efd8a13eb5ead81885df597.zip
Detect failed modification of tweakable better.
Diffstat (limited to 'usr')
-rw-r--r--usr/src/libpiny/lib/Piny/Config.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/libpiny/lib/Piny/Config.pm b/usr/src/libpiny/lib/Piny/Config.pm
index 8b6e192..76405ee 100644
--- a/usr/src/libpiny/lib/Piny/Config.pm
+++ b/usr/src/libpiny/lib/Piny/Config.pm
@@ -175,13 +175,13 @@ sub tweakable {
if ( $s->has_confpath ) {
$s->save;
- $s->clear_conf;
} else {
carp "Attribute $attrname modification ignored!";
- $s->clear_conf;
- my $clearer = "clear_$attr";
- $s->$clearer;
};
+
+ $s->clear_conf;
+ my $clearer = "clear_$attr";
+ $s->$clearer;
}
);