From 8dc0563bd0ee69ae7efd8a13eb5ead81885df597 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sat, 16 Oct 2010 21:49:21 -0700 Subject: Detect failed modification of tweakable better. --- usr/src/libpiny/lib/Piny/Config.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr/src/libpiny/lib/Piny/Config.pm') 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; } ); -- cgit v1.2.3