Skip to content
Myr

Better error output when using flash without session middleware.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Pau Ramon · committed by Tj Holowaychuk · parent b122bf2 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:lib/request.js+1 added
188 unmodified lines
189 * @api public190 */191192req.flash = function(type, msg){193 if (this.session === undefined) throw Error('You must enable session middleware!');194 var msgs = this.session.flash = this.session.flash || {};195 if (type && msg) {196 var i = 2197 , args = arguments
92 unmodified lines