diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-10-16 21:49:21 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-10-16 21:49:21 -0700 |
commit | 8dc0563bd0ee69ae7efd8a13eb5ead81885df597 (patch) | |
tree | d5f1eb142f4fc614eb377e8e1c757085953eab7f /usr | |
parent | f6e7039bf894c8241125622776720037aef620a2 (diff) | |
download | piny-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.pm | 8 |
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; } ); |