mirror of
https://github.com/xcat2/confluent.git
synced 2026-05-01 12:57:45 +00:00
Fix transmit of notfound errors
This commit is contained in:
@@ -249,9 +249,9 @@ async def process_request(
|
||||
else:
|
||||
hdlr = pluginapi.handle_path(path, operation, cfm, params)
|
||||
except exc.NotFoundException as e:
|
||||
send_data(connection, {"errorcode": 404,
|
||||
"error": "Target not found - " + str(e)})
|
||||
send_data(connection, {"_requestdone": 1})
|
||||
await send_data(connection, {"errorcode": 404,
|
||||
"error": "Target not found - " + str(e)})
|
||||
await send_data(connection, {"_requestdone": 1})
|
||||
except exc.InvalidArgumentException as e:
|
||||
await send_data(connection, {"errorcode": 400,
|
||||
"error": "Bad Request - " + str(e)})
|
||||
|
||||
Reference in New Issue
Block a user