Skip to content

Fix broken error handling when opening Guide Manager.#569

Merged
miquelcampos merged 1 commit intomgear-dev:masterfrom
timothyliu3d:5.1.0-fix-error-display
Nov 7, 2025
Merged

Fix broken error handling when opening Guide Manager.#569
miquelcampos merged 1 commit intomgear-dev:masterfrom
timothyliu3d:5.1.0-fix-error-display

Conversation

@timothyliu3d
Copy link
Copy Markdown
Contributor

Description of Changes

Please clearly state what you have changed and why you made these changes.

Errors in custom components when opening Guide Manager only show TypeError instead of the relevant error because the exception instance is passed to pm.displayError, which only accepts str arg.
Remove an extraneous call with the incorrect arg.

Testing Done

Please describe the tests that you ran to verify your changes.

Tested with:

  • Maya 2026
  • mGear 5.1.0

Intentional error in custom component properly shows in output instead of unrelated TypeError.

Related Issue(s)

Please link the related issues.

N/A

…t_list`

`pm.displayError` is a wrapper of `om.MGlobal.displayError`, which only accepts `str` arg.
@timothyliu3d
Copy link
Copy Markdown
Contributor Author

I don't believe the build error is related to the commit.

@miquelcampos
Copy link
Copy Markdown
Member

Hi @timothyliu3d
Thanks for the PR.
Not sure if I understand your last comment 😅

@timothyliu3d
Copy link
Copy Markdown
Contributor Author

timothyliu3d commented Oct 25, 2025

Hi Miquel @miquelcampos

I am referring to the "code quality" CI workflow that fails when the PR is made:
Error: Version 3.7 with arch x64 not found
I believe is unrelated to my commit 🙂

Hope that clarifies things.

Thanks!

@miquelcampos miquelcampos self-assigned this Nov 7, 2025
@miquelcampos miquelcampos added the bug Something isn't working label Nov 7, 2025
@github-project-automation github-project-automation bot moved this to To Do in mGear DEV Nov 7, 2025
@miquelcampos miquelcampos merged commit 8da112e into mgear-dev:master Nov 7, 2025
0 of 3 checks passed
@github-project-automation github-project-automation bot moved this from To Do to 5.2.0 in mGear DEV Nov 7, 2025
@miquelcampos
Copy link
Copy Markdown
Member

Thanks!

@timothyliu3d timothyliu3d deleted the 5.1.0-fix-error-display branch November 12, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: 5.2.0

Development

Successfully merging this pull request may close these issues.

2 participants