Skip to content

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

@core-ai-bot

Description

@core-ai-bot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions