aboutsummaryrefslogtreecommitdiff
path: root/lib/error_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/error_handler.c')
-rw-r--r--lib/error_handler.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/error_handler.c b/lib/error_handler.c
index 2ccb4e7..5130f3a 100644
--- a/lib/error_handler.c
+++ b/lib/error_handler.c
@@ -15,6 +15,7 @@ const char *SPM_ERR_STRING[] = {
"Manifest has no data",
"Parsing error",
"Not implemented",
+ "Failed to fetch data",
NULL,
};
@@ -55,3 +56,7 @@ void spm_perror(const char *msg) {
fprintf(stderr, "%s: %s\n", msg ? msg : "", spm_strerror(spmerrno));
}
+void spm_die(void) {
+ spm_perror("FATAL");
+ exit(1);
+}