sub LOGifError { my ($o, $what, $err) = @_; $o->LOG('error', "$what: $error") if $error; }