mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 21:27:09 +02:00
added connect-flash package. npm also alphabetically re-ordered the deps... thanks npm?
This commit is contained in:
@@ -12,7 +12,9 @@ function createStatic(statusCode) {
|
||||
res.statusCode = parseInt(statusCode, 10);
|
||||
}
|
||||
|
||||
res.render(statusCode, {});
|
||||
res.render(statusCode, {
|
||||
errorMessage: req.flash('errorMessage')[0] || undefined
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user