mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 17:46:28 +08:00
修复discussion模块
This commit is contained in:
1 parent
2554cf660a
commit
33e277f28f
30 files changed
+2460
-187
No files matched your search
+8
-6
@@ -225,6 +225,13 @@ class DiscussionNotFoundError extends NotFoundError {
|
||||
}
|
||||
}
|
||||
|
||||
class MessageNotFoundError extends NotFoundError {
|
||||
constructor(mid) {
|
||||
super('Message {0} not found.');
|
||||
this.params = [mid];
|
||||
}
|
||||
}
|
||||
|
||||
global.Hydro.error = module.exports = {
|
||||
BadRequestError,
|
||||
BlacklistedError,
|
||||
@@ -258,6 +265,7 @@ global.Hydro.error = module.exports = {
|
||||
DocumentNotFoundError,
|
||||
DiscussionNotFoundError,
|
||||
RoleAlreadyExistError,
|
||||
MessageNotFoundError,
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -314,12 +322,6 @@ class DiscussionNodeAlreadyExistError(ForbiddenError):
|
||||
return 'Discussion node {1} already exists.'
|
||||
|
||||
|
||||
class MessageNotFoundError(NotFoundError):
|
||||
@property
|
||||
def message(self):
|
||||
return 'Message {0} not found.'
|
||||
|
||||
|
||||
class TrainingRequirementNotSatisfiedError(ForbiddenError):
|
||||
@property
|
||||
def message(self):
|
||||
|
||||
Reference in new issue
Block a user