Improve error diagnostics.
[dss.git] / error.h
diff --git a/error.h b/error.h
index af6c0550ed4699a2e1b3debd32ee36876e80a994..b492c326d8c122e95b61aad6665fe20c9823fe99 100644 (file)
--- a/error.h
+++ b/error.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright (C) 2006-2009 Andre Noll <maan@systemlinux.org>
+ *
+ * Licensed under the GPL v2. For licencing details see COPYING.
+ */
 extern char *dss_errlist[];
 extern char *dss_error_txt;
 
@@ -60,7 +65,10 @@ static inline char *dss_strerror(int num)
        DSS_ERROR(DUP_PIPE, "exec error: can not create pipe") \
        DSS_ERROR(INVOLUNTARY_EXIT, "unexpected termination cause") \
        DSS_ERROR(BAD_EXIT_CODE, "unexpected exit code") \
-       DSS_ERROR(SIGNAL_SIG_ERR, "signal() returned SIG_ERR")
+       DSS_ERROR(SIGNAL_SIG_ERR, "signal() returned SIG_ERR") \
+       DSS_ERROR(SIGNAL, "caught terminating signal") \
+       DSS_ERROR(BUG, "values of beta might cause dom!") \
+
 
 /**
  * This is temporarily defined to expand to its first argument (prefixed by