Skip to content

fix: replace console.log/warn with p5._friendlyError in p5.Texture (fixes #8585)#8586

Open
MASTERsj01 wants to merge 1 commit intoprocessing:mainfrom
MASTERsj01:fix/texture-console-to-fes
Open

fix: replace console.log/warn with p5._friendlyError in p5.Texture (fixes #8585)#8586
MASTERsj01 wants to merge 1 commit intoprocessing:mainfrom
MASTERsj01:fix/texture-console-to-fes

Conversation

@MASTERsj01
Copy link

Summary

Replaces all console.log and console.warn calls in src/webgl/p5.Texture.js with p5._friendlyError() for consistency with the Friendly Error System.

Resolves #8585

Changes

Type Lines What
4 console.log 64, 72, 77, 85 Device capability fallback messages (HALF_FLOAT, FLOAT, linear filtering)
4 console.warn 400, 412, 429, 441 Texture wrap mode warnings (REPEAT/MIRROR on non-power-of-two textures)

All messages now respect p5.disableFriendlyErrors.

Notes

  • All existing tests pass
  • 1 file changed: 38 insertions, 34 deletions

- Replace 4 console.log calls for device capability fallback messages
  (HALF_FLOAT, FLOAT, linear filtering) with p5._friendlyError()
- Replace 4 console.warn calls for texture wrap mode warnings
  (REPEAT/MIRROR on non-power-of-two textures) with p5._friendlyError()
- All messages now respect p5.disableFriendlyErrors setting
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.

p5.Texture: replace console.log/warn with Friendly Error System (FES)

1 participant