Skip to content

Commit

Permalink
Increased timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Oct 18, 2016
1 parent 13f55e1 commit d2a9824
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rendersvgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
window.setTimeout(function() {
console.log("ERROR: Timeout during conversion for " + input);
phantom.exit(2);
}, 10000);
}, 300000);

var page = require('webpage').create(),
fs = require('fs'),
Expand All @@ -31,6 +31,7 @@ if (system.args.length !== 4 && system.args.length !== 6) {
page.onError = function (msg, trace) { console.log(msg); trace.forEach(function(item) { console.log(' ', item.file, ':', item.line); }); };
page.onConsoleMessage = function(msg, lineNum, sourceId) { console.log('CONSOLE: ' + msg + ' (from line #' + lineNum + ' in "' + sourceId + '")'); };
page.onCallback = function(result) {
var out;
out = fs.open(output, { mode: "w", charset: "UTF-8" });
out.write(result.svg);
out.close();
Expand Down

0 comments on commit d2a9824

Please sign in to comment.