summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2015-12-22 10:16:36 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2015-12-22 10:16:36 +0100
commit658c4a1fe18f6dee5063f899a449ea7020c99828 (patch)
tree057bce17ac2784eed0e30563bad29d50b98344fe
parent874b9a78caa3cfa23321ea488708c0b254b3fe92 (diff)
emit json compatible errors
Change-Id: Ib6994e978f442f688acc2419c59d222c0c09495b
-rw-r--r--src/afm-user-daemon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afm-user-daemon.c b/src/afm-user-daemon.c
index 46a662d..4990ff7 100644
--- a/src/afm-user-daemon.c
+++ b/src/afm-user-daemon.c
@@ -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)
{