Skip to content

Better error reporting for internal errors #215

@mikrostew

Description

@mikrostew

Issue

There are currently a number of Notion internal errors in the code:

$ grep -nIr "\.unknown()" crates/ src/ | wc -l
      82

Normally users should not run into these, but when they do there is not much info provided about what happened so that we can reproduce the error.

Proposal

For internal errors, I propose that we:

  1. Log the error details to a file (backtrace, environment, whatever we can get)
  2. Include the location of that file in the error message describing how to report the error, so that the use can include it

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions