diff src/dmsimple.c @ 1055:2858b56bdbe5

Improve error handling.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 01 Mar 2015 22:44:02 +0200
parents d98fcb10df6a
children eb2d14546a0e
line wrap: on
line diff
--- a/src/dmsimple.c	Sun Mar 01 22:37:39 2015 +0200
+++ b/src/dmsimple.c	Sun Mar 01 22:44:02 2015 +0200
@@ -222,7 +222,11 @@
     char buf[256];
 
     if ((res = dmf_open(engine.resources, filename, &file)) != DMERR_OK)
+    {
+        dmErrorMsg("Failed to open engine setup configuration '%s', %d: %s.\n",
+            filename, res, dmErrorStr(res));
         return res;
+    }
 
     while (dmfgets(buf, sizeof(buf), file) != NULL)
     {