Skip to content

fix: replace raw console.log() with p5._friendlyError() in WebGL modules#8652

Open
MASTERsj01 wants to merge 2 commits intoprocessing:dev-2.0from
MASTERsj01:fix/webgl-console-log-fes
Open

fix: replace raw console.log() with p5._friendlyError() in WebGL modules#8652
MASTERsj01 wants to merge 2 commits intoprocessing:dev-2.0from
MASTERsj01:fix/webgl-console-log-fes

Conversation

@MASTERsj01
Copy link

Resolves #8651

Changes:

Replace 20 raw console.log() calls with p5._friendlyError() across 6 WebGL module files, as discussed in the issue:

  • ShapeBuilder.js (2): Tessellation callbacks — now include bug report encouragement
  • p5.RendererGL.js (5): Instancing, setAttributes, and loadPixels errors
  • p5.Camera.js (2): Perspective near/far plane warnings
  • text.js (2): Font loading errors
  • utils.js (2): Texture data validation
  • 3d_primitives.js (7): Stroke limitation warnings on shapes

p5.Shader.inspectHooks() is intentionally left unchanged as it is a user-facing debug tool (per maintainer feedback).

Screenshots of the change:

Not applicable — no visual changes. Only error/warning output channel changed from console.log to FES.

PR Checklist

@MASTERsj01
Copy link
Author

@ksen0 @davepagurek guys plz give a review when you have time
Happy to make any changes if needed
will Really appreciate review 😊😊

@MASTERsj01
Copy link
Author

@ksen0 @davepagurek is there anything left in this pr ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant