Commit fa4515d8 by xzyfer

Always log to stdout

parent bee91ae8
......@@ -29,8 +29,6 @@ function afterBuild(options) {
'binding.node');
mkdir(path.dirname(install), function(err) {
log.stream = process.stderr;
if (err && err.code !== 'EEXIST') {
log.error('node-sass build', err.message);
return;
......@@ -48,7 +46,6 @@ function afterBuild(options) {
return;
}
log.stream = process.stdout;
log.info('node-sass build', 'Installed to %s', install);
});
});
......@@ -133,7 +130,6 @@ function installGitDependencies(options, cb) {
function build(options) {
installGitDependencies(options, function(err) {
if (err) {
log.stream = process.stderr;
log.error('node-sass build', err.message);
process.exit(1);
}
......@@ -155,8 +151,6 @@ function build(options) {
return;
}
log.stream = process.stderr;
if (errorCode === 127) {
log.error('node-sass build', 'node-gyp not found!');
} else {
......
......@@ -112,7 +112,6 @@ function checkAndDownloadBinary() {
try {
mkdir.sync(path.dirname(binaryPath));
} catch (err) {
log.stream = process.stderr;
log.error('node-sass install', 'Unable to save binary to %s: %s', path.dirname(binaryPath), err);
return;
}
......@@ -125,7 +124,6 @@ function checkAndDownloadBinary() {
download(sass.getBinaryUrl(), binaryPath, function(err) {
if (err) {
log.stream = process.stderr;
log.error('node-sass install', err);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment