Log errors

This commit is contained in:
Kevin Sawicki 2015-04-01 11:38:02 -07:00
parent f24ea101e9
commit 4b90926ccf

View File

@ -98,10 +98,14 @@ cp.safeExec.bind(global, 'npm install npm --loglevel error', {cwd: path.resolve(
process.on('exit', function() {
console.log('DONE-----');
var fs = require('fs');
var squirrelLog = path.resolve(__dirname, '..', 'build', 'node_modules', 'grunt-atom-shell-installer', 'vendor', 'SquirrelSetup.log');
console.log(squirrelLog, fs.existsSync(squirrelLog));
if (fs.existsSync(squirrelLog))
console.log(fs.readFileSync(squirrelLog, 'utf8'));
try {
var fs = require('fs');
var squirrelLog = path.resolve(__dirname, '..', 'build', 'node_modules', 'grunt-atom-shell-installer', 'vendor', 'SquirrelSetup.log');
console.log(squirrelLog, fs.existsSync(squirrelLog));
if (fs.existsSync(squirrelLog))
console.log(fs.readFileSync(squirrelLog, 'utf8'));
} catch (error) {
console.error(error.message);
}
});