Can't console.log(req.flash("error")) and render message at the same time
<p>In the <code>get</code> section I have the console.log() commented. Because of that I receive the appropriate message on the screen. but if I uncomment it I receive the message in the console like this  <code>[message]</code> but no message outputted to the screen. why is that? can I not have 2  <code>req.flash('error')</code> in a route handler?</p>

<pre><code>app.get("/login", function(req, res){
    // console.log(req.flash("error"))
    res.render('login', { message: req.flash('error') });
})

app.post("/login", function(req, res, next){
    console.log("posted")
    passport.authenticate("local",{
        successRedirect : "/users/" + req.body.username,
        failureRedirect : "/login",
        failureFlash : true
    })(req, res, next)
} )
</code></pre>

<p>im using <code>var flash = require("connect-flash");</code></p>