diff options
author | Tom Hunkapiller <tom@furycodes.com> | 2015-04-10 14:10:55 -0500 |
---|---|---|
committer | Tom Hunkapiller <tom@furycodes.com> | 2015-04-10 14:18:30 -0500 |
commit | fd1d285a77db1c583be3e42fb1929ecd4dd41633 (patch) | |
tree | 8fb338282c941300ff6ec230447fe6faa2ab5fd7 /src/node/hooks/express/errorhandling.js | |
parent | 6fad2ca39a01dbde3ef9f6ea7384b27d9d14661d (diff) | |
download | etherpad-lite-fd1d285a77db1c583be3e42fb1929ecd4dd41633.zip |
fix the rest of the deprecation warnings
Diffstat (limited to 'src/node/hooks/express/errorhandling.js')
-rw-r--r-- | src/node/hooks/express/errorhandling.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/hooks/express/errorhandling.js b/src/node/hooks/express/errorhandling.js index 087dd50e..7afe80ae 100644 --- a/src/node/hooks/express/errorhandling.js +++ b/src/node/hooks/express/errorhandling.js @@ -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); } -}
\ No newline at end of file +} |