mirror of
https://github.com/wassname/talk.git
synced 2026-08-13 12:40:11 +08:00
fix: don't log an error for http 404, let the logger do it
This commit is contained in:
@@ -231,6 +231,15 @@ class ErrContainsProfanity extends TalkError {
|
||||
}
|
||||
}
|
||||
|
||||
class ErrHTTPNotFound extends TalkError {
|
||||
constructor() {
|
||||
super('http not found', {
|
||||
translation_key: 'NOT_FOUND',
|
||||
status: 404,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
class ErrNotFound extends TalkError {
|
||||
constructor() {
|
||||
super('not found', {
|
||||
@@ -432,4 +441,5 @@ module.exports = {
|
||||
ErrSpecialChars,
|
||||
ErrUsernameTaken,
|
||||
ExtendableError,
|
||||
ErrHTTPNotFound,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user