|
@ -294,7 +294,7 @@ async function vcmpAppAuthToken (ctx) { |
|
|
ctx.status = 200; |
|
|
ctx.status = 200; |
|
|
ctx.body = { token } |
|
|
ctx.body = { token } |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: error`); |
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); |
|
|
ctx.status = 400; |
|
|
ctx.status = 400; |
|
|
ctx.body = { |
|
|
ctx.body = { |
|
|
message: typeof error == 'string' ? error : undefined |
|
|
message: typeof error == 'string' ? error : undefined |
|
|