Skip to content

Improved Stack Trace #185

@BrendanC23

Description

@BrendanC23

Is there a way to get a more detailed stack trace for an error that occurs during an electron-trpc call? For example, a Zod error results in this:

image

Matches.tsx:267 Uncaught TRPCClientError: [
  {
    "code": "invalid_type",
    "expected": "object",
    "received": "null",
    "path": [],
    "message": "Expected object, received null"
  }
]
    at _y.from (renderer.mjs:60:10)
    at Object.next (renderer.mjs:487:23)
    at V.M (renderer.mjs:469:21)
    at renderer.mjs:447:21

There's no line numbers in the stack trace that indicate where the error actually came from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions