Skip to content

Commit eef1454

Browse files
committed
remove the throw isolation when loading a sketch
1 parent cdd2d99 commit eef1454

File tree

3 files changed

+213
-221
lines changed

3 files changed

+213
-221
lines changed

processing.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ window.Processing = require('./src/')(Browser);
2525
},{"./src/":28}],2:[function(require,module,exports){
2626
module.exports={
2727
"name": "Processing.js",
28-
"version": "1.4.11",
28+
"version": "1.4.12",
2929
"dependencies": {
3030
"argv": "~0.0.2",
3131
"browserify": "~2.18.1",
@@ -893,12 +893,8 @@ module.exports = function finalizeProcessing(Processing, options) {
893893
}
894894
if (loaded === sourcesCount) {
895895
if (errors.length === 0) {
896-
try {
897-
return new Processing(canvas, code.join("\n"));
898-
} catch(e) {
899-
console.log("Processing.js: Unable to execute pjs sketch.");
900-
throw e;
901-
}
896+
// This used to throw, but it was constantly getting in the way of debugging where things go wrong!
897+
return new Processing(canvas, code.join("\n"));
902898
} else {
903899
throw "Processing.js: Unable to load pjs sketch files: " + errors.join("\n");
904900
}

0 commit comments

Comments
 (0)