aboutsummaryrefslogtreecommitdiffstats
path: root/src/zperror.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zperror.c')
-rw-r--r--src/zperror.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/zperror.c b/src/zperror.c
index 37bd5c7..5d5d11a 100644
--- a/src/zperror.c
+++ b/src/zperror.c
@@ -11,7 +11,11 @@ zperror(const char *prefix)
errno = libzahl_error;
perror(prefix);
} else {
- /* Current, we should not be able to get here. */
- abort();
+ const char *desc;
+ zerror(&desc);
+ if (prefix && *prefix)
+ fprintf(stderr, "%s: %s\n", prefix, desc);
+ else
+ fprintf(stderr, "%s\n", desc);
}
}