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

chore: make js errors more robust #232

Merged
merged 1 commit into from
May 17, 2024
Merged

chore: make js errors more robust #232

merged 1 commit into from
May 17, 2024

Conversation

benfdking
Copy link
Collaborator

No description provided.

@benfdking benfdking linked an issue May 17, 2024 that may be closed by this pull request
@benfdking benfdking added this to the First launch fixes milestone May 17, 2024
@benfdking benfdking added the bug Something isn't working label May 17, 2024
tree?: QuaryError
}

export function isQuaryError(value: any): value is QuaryError {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unknown potentially a more accurate type

Suggested change
export function isQuaryError(value: any): value is QuaryError {
export function isQuaryError(value: unknown): value is QuaryError {

)
}

export function toString(error: QuaryError): string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I worry that toString is a bit generic - maybe quaryErrorToString or formatQuaryError?

@louisjoecodes
Copy link
Contributor

This will be so much better 🚀

@benfdking benfdking merged commit c2d534d into main May 17, 2024
10 checks passed
@benfdking benfdking deleted the error_robust branch May 17, 2024 22:02
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
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Multiple workspaces
2 participants