ui: better training validation output

This commit is contained in:
undefined committed 2022-08-09 20:35:44 +08:00
1 parent 9a44422522
commit 6bda0e58d3
9 files changed
+13 -6

No files matched your search

+1 -1
View File
@@ -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;
}