Created
September 27, 2013 16:25
-
-
Save bengl/6731211 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = express(); | |
app.get('/', function(req, res){ | |
try{ | |
if (someBoolean) { | |
res.send("all good!") | |
} else { | |
throw Error("shit's fucked, yo"); | |
} | |
} catch (e){ | |
res.send(e.toString(), 500); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment