increased timeout again (yep some sites needs it) and stringify errors
This commit is contained in:
parent
b2639392bc
commit
9c0b0708d2
|
|
@ -89,7 +89,7 @@ function analyzeUrl(args, asyncDoneCallback) {
|
|||
log.log('info', "Running YSlow for " + url);
|
||||
|
||||
childProcess.execFile(binPath, childArgs, {
|
||||
timeout: 120000
|
||||
timeout: 240000
|
||||
}, function(err, stdout, stderr) {
|
||||
|
||||
if (stderr) {
|
||||
|
|
@ -99,7 +99,7 @@ function analyzeUrl(args, asyncDoneCallback) {
|
|||
|
||||
if (err) {
|
||||
// YSlow writes console.err but ends up in stdout
|
||||
log.log('error', 'Error running YSlow: ' + url + ' (' + stdout + stderr +
|
||||
log.log('error', 'Error running YSlow: ' + url + ' (' + JSON.stringify(stdout) + stderr +
|
||||
err + ')');
|
||||
asyncDoneCallback(undefined, err + stdout);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue