added connect-flash package. npm also alphabetically re-ordered the deps... thanks npm?

This commit is contained in:
Julian Lam
2014-06-18 10:17:50 -04:00
parent fb504473e1
commit 6f218857cb
3 changed files with 38 additions and 32 deletions

View File

@@ -12,7 +12,9 @@ function createStatic(statusCode) {
res.statusCode = parseInt(statusCode, 10);
}
res.render(statusCode, {});
res.render(statusCode, {
errorMessage: req.flash('errorMessage')[0] || undefined
});
};
}