From 27ad7e41c90e67e575b53fb26335d9f9fcae4f05 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 1 Apr 2015 14:49:00 -0400 Subject: [PATCH] process.env is an object --- src/controllers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/index.js b/src/controllers/index.js index 74cce358e5..ce50cc4c17 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -118,7 +118,7 @@ Controllers.register = function(req, res, next) { data.error = req.flash('error')[0]; plugins.fireHook('filter:register.build', {req: req, res: res, templateData: data}, function(err, data) { - if (err && process.env === 'development') { + if (err && global.env === 'development') { winston.warn(JSON.stringify(err)); return next(err); }