aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@debian.org>2021-02-22 03:13:26 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-22 03:18:50 +0100
commitf55a2782db2e86c88ed4780d7ed54b09792d07d6 (patch)
tree54b0d3a5c6a6db4d5e9cf0f038f14096eb910234
parentd9c91dc92f4d6af2d9f537a5f30a2cb40715da71 (diff)
Print error messages only once.
-rwxr-xr-xlacme-accountd4
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($$) {