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

[CLOSED] Fix #3412: Cryptic error message when addMenuItem() is passed bad args #3388

Open
core-ai-bot opened this issue Aug 29, 2021 · 4 comments

Comments

@core-ai-bot
Copy link
Member

Issue by TomMalbran
Thursday Apr 25, 2013 at 00:20 GMT
Originally opened as adobe/brackets#3611


Fix for the issue #3412 by graving the resulting error code from the callback and providing a better error message for each code. I added a similar approach to addMenu() since it had a similar problem.

I searched through the Brackets Shell code to find which where the possible error codes for each function to provide a specific error message for each, but let me know if I missed one, since I mainly went through the Mac implementation since in the Win one was harder to find the error codes, and the list isn't complete in the JavaScript file.


TomMalbran included the following code: https://github.com/adobe/brackets/pull/3611/commits

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Friday May 03, 2013 at 23:18 GMT


Done with initial review.

@core-ai-bot
Copy link
Member Author

Comment by TomMalbran
Friday May 03, 2013 at 23:52 GMT


@redmunds Fixed pushed :)

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Saturday May 04, 2013 at 00:21 GMT


Done with review. One more minor comment.

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Saturday May 04, 2013 at 00:32 GMT


Merging.

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

No branches or pull requests

1 participant