Skip to content

Commit

Permalink
send specific phantomjs errors to the phantomjs log #334
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Dec 27, 2013
1 parent d79df41 commit 328e638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/sitespeed.io
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ function analyze() {
## do the same thing again but setting console to log the error to output
log_error "Could not analyze $url unrecoverable error when parsing the page"
log_error "Input parameters: $INPUT"
phantomjs --ignore-ssl-errors=yes $PROXY_PHANTOMJS $YSLOW_FILE -d -r $RULESET -f xml "$USER_AGENT_YSLOW" $VIEWPORT_YSLOW "$url" -c 2 >> $REPORT_DATA_DIR/$ERROR_LOG
phantomjs --ignore-ssl-errors=yes $PROXY_PHANTOMJS $YSLOW_FILE -d -r $RULESET -f xml "$USER_AGENT_YSLOW" $VIEWPORT_YSLOW "$url" -c 2 2>> $REPORT_DATA_DIR/phantomjs.error.log >> $REPORT_DATA_DIR/$ERROR_LOG

## write the error url to the list
echo "sitespeed.io got an unrecoverable error when parsing the page,$url" >> $REPORT_DATA_DIR/errorurls.txt
Expand Down

0 comments on commit 328e638

Please sign in to comment.