Skip to content

Instantly share code, notes, and snippets.

@bengl
Created September 27, 2013 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bengl/6731211 to your computer and use it in GitHub Desktop.
Save bengl/6731211 to your computer and use it in GitHub Desktop.
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