Skip to content

fix(cli): prevent shadowed error function #1075

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

Merged
merged 1 commit into from
May 13, 2025

Conversation

stnguyen90
Copy link
Contributor

What does this PR do?

Because the error function was shadowed by the caught error, you'd see an error like:

Error: error is not a function

This prevents the error function from being shadowed so that it is still callable.

Test Plan

Tested manually

Before:

image

After:

image

Related PRs and Issues

None

Have you read the Contributing Guidelines on issues?

Yes

Because the error function was shadowed by the caught error, you'd see an error like:

Error: error is not a function

This prevents the error function from being shadowed so that it is still callable.
@stnguyen90 stnguyen90 merged commit 5369528 into master May 13, 2025
37 checks passed
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.

2 participants