mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
Log errors
This commit is contained in:
parent
f24ea101e9
commit
4b90926ccf
@ -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);
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user