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.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/error_handler.c b/lib/error_handler.c
index 292fa6f..4e06919 100644
--- a/lib/error_handler.c
+++ b/lib/error_handler.c
@@ -3,6 +3,18 @@
int spmerrno = 0;
static char spmerrbuf[255];
static char spmerrbuf_reason[255];
+const char *SPM_ERR_STRING[] = {
+ "Success",
+ "No root record",
+ "Dangerous root path",
+ "Package not found",
+ "Invalid package",
+ "Bad package checksum",
+ "Failed to fetch package",
+ "Manifest has no header",
+ "Manifest has no data",
+ NULL,
+};
void spmerrno_cause(const char *reason) {
char *buf = spmerrbuf_reason;