# HG changeset patch # User Kim Alvefur # Date 1606058244 -3600 # Node ID b43c6d614d22a3c7401b63db4637e281e8fa9edf # Parent 7b4a73364363edef7e081cfd3efb52f1b8c4f0a1 mod_adhoc_oauth2_client: Fix adhoc status on error There's no 'error' status, it's 'canceled' and an error message. diff -r 7b4a73364363 -r b43c6d614d22 mod_adhoc_oauth2_client/mod_adhoc_oauth2_client.lua --- a/mod_adhoc_oauth2_client/mod_adhoc_oauth2_client.lua Sun Nov 22 01:55:42 2020 +0100 +++ b/mod_adhoc_oauth2_client/mod_adhoc_oauth2_client.lua Sun Nov 22 16:17:24 2020 +0100 @@ -47,7 +47,7 @@ local ok, err = errors.coerce(clients:set(creator, client_id, client)); module:log("info", "OAuth2 client %q created by %s", client_id, data.from); - if not ok then return {status = "error"; error = {message = err}}; end + if not ok then return {status = "canceled"; error = {message = err}}; end return {status = "completed"; result = {layout = client_created; values = {client_id = client.client_id; client_secret = client_secret}}}; end