1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

api: another bugfix in the status endpoint

This commit is contained in:
Steffen Vogel 2020-10-16 13:01:51 +02:00
parent be4091a8b1
commit 4ccc101f9e

View file

@ -49,7 +49,7 @@ protected:
ret = lws_json_dump_context(ctx, buf, sizeof(buf), 0);
if (ret)
throw Error();
throw Error(HTTP_STATUS_INTERNAL_SERVER_ERROR, "Failed to dump LWS context");
return json_loads(buf, 0, nullptr);
}