core: 调整 Error 参数 (#94)

This commit is contained in:
无限UCW authored and GitHub committed 2021-04-17 22:21:43 +08:00
1 parent 994634947e
commit 71c1226515
7 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ class SolutionModel {
static async get(domainId: string, psid: ObjectID) {
const psdoc = await document.get(domainId, document.TYPE_PROBLEM_SOLUTION, psid);
if (!psdoc) throw new SolutionNotFoundError();
if (!psdoc) throw new SolutionNotFoundError(domainId, psid);
return psdoc;
}