mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
fix the rest of the deprecation warnings
This commit is contained in:
parent
6fad2ca39a
commit
fd1d285a77
6 changed files with 8 additions and 8 deletions
|
@ -39,7 +39,7 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
|||
// if an error occurs Connect will pass it down
|
||||
// through these "error-handling" middleware
|
||||
// allowing you to respond however you like
|
||||
res.send(500, { error: 'Sorry, something bad happened!' });
|
||||
res.status(500).send({ error: 'Sorry, something bad happened!' });
|
||||
console.error(err.stack? err.stack : err.toString());
|
||||
stats.meter('http500').mark()
|
||||
})
|
||||
|
@ -50,4 +50,4 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
|||
//https://github.com/joyent/node/issues/1553
|
||||
process.on('SIGINT', exports.gracefulShutdown);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue