mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-12 15:56:16 +02:00
Use correct constructor for 404,501 error handlers
Fixes error message mentioned in #4378.
This commit is contained in:
parent
5a1110d0d6
commit
aef4cce0c9
@ -575,10 +575,10 @@ exports.expressCreateServer = (hookName, args, cb) => {
|
||||
// register default handlers
|
||||
api.register({
|
||||
notFound: () => {
|
||||
throw new createHTTPError.notFound('no such function');
|
||||
throw new createHTTPError.NotFound('no such function');
|
||||
},
|
||||
notImplemented: () => {
|
||||
throw new createHTTPError.notImplemented('function not implemented');
|
||||
throw new createHTTPError.NotImplemented('function not implemented');
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user