Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced all console.error with p5._friendlyError #6674

Closed
wants to merge 1 commit into from

Conversation

samrudh3125
Copy link

@samrudh3125 samrudh3125 commented Dec 30, 2023

Resolves #6630

Changes:

All the console.error in the codebase were replaced with p5._friendlyError. Since this is my first contribution kindly accept this.

Screenshots of the change:

Screenshot (34)

PR Checklist

Copy link

welcome bot commented Dec 30, 2023

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already. And be sure to add yourself to the list of contributors on the readme page!

@samrudh3125
Copy link
Author

Since this is my first contribution i didnt exactly understand what is inline documentation and unit tests. Please accept the pull request as i have put a lot of time in this contribution

@samrudh3125
Copy link
Author

@all-contributors please add @samrudh3125 for THING(S)

Copy link
Contributor

@samrudh3125

I couldn't determine any contributions to add, did you specify any contributions?
Please make sure to use valid contribution names.

@samrudh3125
Copy link
Author

all-contributors please add @your-username for p5.js

@samrudh3125
Copy link
Author

@all-contributors please add @samrudh3125 for processing/p5.js

Copy link
Contributor

@samrudh3125

I couldn't determine any contributions to add, did you specify any contributions?
Please make sure to use valid contribution names.

@samrudh3125
Copy link
Author

@all-contributors please add @samrudh3125 for a11y

Copy link
Contributor

@samrudh3125

I've put up a pull request to add @samrudh3125! 🎉

@perminder-17
Copy link
Contributor

Hey @samrudh3125, thanks a lot for your work on this. However, that's not exactly how it works. For example, when I use console.err(e), it means I’m unsure of what’s happening or what kind of error might be occurring, and we get a line from the p5.js library. Friendly errors, on the other hand, are designed to be more helpful to the user. They point out the specific line in your code where the issue happened and even suggest possible solutions. These errors are not only formatted clearly but also provide guidance. You can see an example below where both an error message and a friendly error message are shown.

Screenshot from 2024-10-02 09-06-02

So, closing this PR, but thanks a lot on your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Replace console.error with friendly error system
3 participants