mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: 调整 Error 参数 (#94)
This commit is contained in:
1 parent
994634947e
commit
71c1226515
7 files changed
+10
-10
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user