mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: better training validation output
This commit is contained in:
1 parent
9a44422522
commit
6bda0e58d3
9 files changed
+13
-6
No files matched your search
@@ -51,7 +51,7 @@ export default (logger) => async (ctx: KoaContext, next) => {
|
||||
if (request.json) response.body = { error };
|
||||
else {
|
||||
try {
|
||||
await ctx.render(error instanceof UserFacingError ? 'error.html' : 'bsod.html', { error });
|
||||
await ctx.render(error instanceof UserFacingError ? 'error.html' : 'bsod.html', { UserFacingError, error });
|
||||
} catch (e) {
|
||||
logger.error(e);
|
||||
// this.response.body.error = {};
|
||||
|
||||
Reference in new issue
Block a user