Browse Source

增加错误输出

dev
CODE 1 year ago
parent
commit
082ed56e53
  1. 4
      api/app/lib/controllers/project/group.js

4
api/app/lib/controllers/project/group.js

@ -196,7 +196,7 @@ async function groupStatistic (ctx) {
ctx.status = 200;
ctx.body = rslt
} catch (error) {
ctx.fs.logger.error(`path: ${ctx.path}, error: error`);
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
ctx.status = 400;
ctx.body = {
message: typeof error == 'string' ? error : undefined
@ -310,7 +310,7 @@ async function groupStatisticOnline (ctx) {
ctx.status = 200;
ctx.body = strucRes;
} catch (error) {
ctx.fs.logger.error(`path: ${ctx.path}, error: error`);
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
ctx.status = 400;
ctx.body = {
message: typeof error == 'string' ? error : undefined

Loading…
Cancel
Save