mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01: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
@@ -49,7 +49,7 @@ async function _parseDagJson(domainId: string, _dag: string): Promise<Tdoc['dag'
|
||||
parsed.push(newNode);
|
||||
}
|
||||
} catch (e) {
|
||||
throw new ValidationError('dag', null, e.message);
|
||||
throw new ValidationError('dag', null, e instanceof ProblemNotFoundError ? e : e.message);
|
||||
}
|
||||
return parsed;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user