don't blindly ignore error in install.js

This commit is contained in:
psychobunny
2015-04-21 20:27:40 -04:00
parent 89c863caa7
commit e2215b9912

View File

@@ -55,7 +55,8 @@ function checkSetupFlag(next) {
var setupVal;
try {
setupVal = JSON.parse(nconf.get('setup'));
} catch (e) {
} catch (err) {
winston.error('Was unable to parse JSON, continuing with regular setup.', err);
setupVal = undefined;
}