X-Git-Url: https://git.wpitchoune.net/gitweb/?p=ptask.git;a=blobdiff_plain;f=src%2Ftw.c;h=5ec2bc41ca7a435401c740839b968b88bff0f9c1;hp=df73030e8d466a5d4ff0fa27cc840ab9d9e2f991;hb=f951f3835f81ff1deeef1e9d56e861db2c61924a;hpb=ce72250602c6c12ba7b4bce51a66ad2e5a4d460a diff --git a/src/tw.c b/src/tw.c index df73030..5ec2bc4 100644 --- a/src/tw.c +++ b/src/tw.c @@ -153,6 +153,9 @@ static struct json_object *task_exec_json(const char *opts) free(cmd); + if (o && is_error(o)) + return NULL; + return o; }