diff options
author | Guilhem Moulin <guilhem@debian.org> | 2021-02-22 03:13:26 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2021-02-22 03:18:50 +0100 |
commit | f55a2782db2e86c88ed4780d7ed54b09792d07d6 (patch) | |
tree | 54b0d3a5c6a6db4d5e9cf0f038f14096eb910234 /lacme-accountd | |
parent | d9c91dc92f4d6af2d9f537a5f30a2cb40715da71 (diff) |
Print error messages only once.
Diffstat (limited to 'lacme-accountd')
-rwxr-xr-x | lacme-accountd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lacme-accountd b/lacme-accountd index 9ed41c4..9909cb8 100755 --- a/lacme-accountd +++ b/lacme-accountd @@ -79,13 +79,13 @@ sub info(@) { logmsg(all => @_); } sub error(@) { my @msg = ("Error: ", @_); info(@msg); - die(@msg, "\n"); + exit 255; } sub panic(@) { my @loc = caller; my @msg = (@_, " at line $loc[2] in $loc[1]"); info(@msg); - die(@msg, "\n"); + exit 255; } sub env_fallback($$) { |