emit json compatible errors
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 22 Dec 2015 09:16:36 +0000 (10:16 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 22 Dec 2015 09:16:36 +0000 (10:16 +0100)
Change-Id: Ib6994e978f442f688acc2419c59d222c0c09495b

src/afm-user-daemon.c

index 46a662d..4990ff7 100644 (file)
@@ -31,9 +31,9 @@ static struct jbus *jbus;
 static struct af_db *afdb;
 
 const char error_nothing[] = "[]";
-const char error_bad_request[] = "bad request";
-const char error_not_found[] = "not found";
-const char error_cant_start[] = "can't start";
+const char error_bad_request[] = "\"bad request\"";
+const char error_not_found[] = "\"not found\"";
+const char error_cant_start[] = "\"can't start\"";
 
 static const char *getappid(struct json_object *obj)
 {