wip more logging

This commit is contained in:
Slava Kim
2014-07-28 18:53:14 -07:00
parent 03fa26fc92
commit b1b20ec83a
2 changed files with 5 additions and 1 deletions

View File

@@ -12,6 +12,10 @@
iter(array[i], i);
};
each(__jsUrlsToLoad, function (js) {
console.log('to load: ' + js)
});
var ajax = function (url, cb) {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {

View File

@@ -83,7 +83,7 @@ var execFileSync = function (file, args, opts) {
var child_process = require('child_process');
child_process.execFile(file, args, opts, function (err, stdout, stderr) {
process.stderr.write(err ? 'failed\n' + err + '\n' : '');
process.stderr.write(err ? 'failed: ' + file + ' ' + JSON.stringify(args) + '\n' + err.stack + '\n' : '');
future.return({
success: ! err,
stdout: stdout,