Browse Source

Log write errors in _object_add() more prominently.

default 2 years ago
parent
commit
bc7a6c2708
1 changed files with 3 additions and 1 deletions
  1. 3 1
      data.c

+ 3 - 1
data.c

@@ -538,8 +538,10 @@ int _object_add(const char *id, d_char *obj, int ow)
             }
         }
     }
-    else
+    else {
+        srv_log(xs_fmt("object_add error writing %s (errno: %d)", fn, errno));
         status = 500;
+    }
 
     srv_debug(1, xs_fmt("object_add %s %s %d", id, fn, status));