Cleaned up 'src/app/channel'
This commit is contained in:
parent
985f8a250f
commit
5b5f495853
4 changed files with 160 additions and 123 deletions
|
|
@ -24,4 +24,9 @@ module.exports.exceptionHandler = function(res, err){
|
|||
module.exports.socketExceptionHandler = function(socket, err){
|
||||
//if not yell at the browser for fucking up, and tell it what it did wrong.
|
||||
return socket.emit("error", {errors: [{type: "Caught Exception", msg: err.message, date: new Date()}]});
|
||||
}
|
||||
|
||||
module.exports.socketCriticalExceptionHandler = function(socket, err){
|
||||
//if not yell at the browser for fucking up, and tell it what it did wrong.
|
||||
return socket.disconnect("error", {errors: [{type: "Caught Exception", msg: err.message, date: new Date()}]});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue