diff --git a/lib/ui/api.ts b/lib/ui/api.ts index 1b2baec..2a02937 100644 --- a/lib/ui/api.ts +++ b/lib/ui/api.ts @@ -367,7 +367,7 @@ for (const [resource, flags] of Object.entries(resources)) { } catch (err) { log.message += " failed"; logger.accessWarn(log); - ctx.body = err; + ctx.body = `${err.name}: ${err.message}`; return void (ctx.status = 400); }