Posts by Igor Antun • 23 points
1 post
-
2
votes3
answers749
viewsA: Node.js application always falls after an error
To prevent your application crashing with errors you can also use the Try() and catch() methods, example: var exemploFunc = function(req, res) { try { console.log('Nenhum erro :)'); } catch(e) {…