You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/webgl/ShapeBuilder.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -438,13 +438,13 @@ export class ShapeBuilder {
438
438
439
439
functionbegincallback(type){
440
440
if(type!==libtess.primitiveType.GL_TRIANGLES){
441
-
console.log(`expected TRIANGLES but got type: ${type}`);
441
+
p5._friendlyError(`Unexpected tessellation type: expected TRIANGLES but got type: ${type}. If you see this, please report it as a bug at https://github.com/processing/p5.js/issues`);
442
442
}
443
443
}
444
444
445
445
functionerrorcallback(errno){
446
-
console.log('error callback');
447
-
console.log(`error number: ${errno}`);
446
+
p5._friendlyError(`Tessellation error (error number: ${errno}). If you see this, please report it as a bug at https://github.com/processing/p5.js/issues`);
447
+
448
448
}
449
449
450
450
// callback for when segments intersect and must be split
0 commit comments