Skip to content
Myr

tweak req.flash() failure message

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent be7068f · Browse files · 1 file+1 added−1 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−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

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