diff options
Diffstat (limited to 'src/afb-msg-json.c')
-rw-r--r-- | src/afb-msg-json.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/afb-msg-json.c b/src/afb-msg-json.c index 7702eb63..b4ae51b4 100644 --- a/src/afb-msg-json.c +++ b/src/afb-msg-json.c @@ -107,4 +107,14 @@ struct afb_arg afb_msg_json_get_arg(struct json_object *object, const char *name return arg; } +struct json_object *afb_msg_json_internal_error() +{ + static struct json_object *obj; + + if (obj == NULL) + obj = afb_msg_json_reply_error("failed", "internal error", NULL, NULL); + + return obj; +} + |