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

Don't wrap existing errors #37

Merged
merged 8 commits into from
Sep 24, 2021
Merged

Don't wrap existing errors #37

merged 8 commits into from
Sep 24, 2021

Commits on Sep 18, 2021

  1. Configuration menu
    Copy the full SHA
    eeab1b5 View commit details
    Browse the repository at this point in the history
  2. Inline errno package

    vweevers committed Sep 18, 2021
    Configuration menu
    Copy the full SHA
    3576ead View commit details
    Browse the repository at this point in the history
  3. Fix message and cause bugs

    vweevers committed Sep 18, 2021
    Configuration menu
    Copy the full SHA
    cb62efa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6db33c7 View commit details
    Browse the repository at this point in the history
  5. Don't wrap existing errors

    So that when `abstract-leveldown` starts using `level-errors`, and
    such a db is wrapped with `levelup`, `levelup` will not rewrap
    errors and lose stack trace information in the process. I.e.:
    
    ```
    // Error created by abstract-leveldown
    const err = new ReadError('example')
    
    // Error created by levelup
    const wrapped = new ReadError(err)
    
    assert(wrapped === err)
    ```
    
    Ref Level/community#58
    vweevers committed Sep 18, 2021
    Configuration menu
    Copy the full SHA
    8c2de6b View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2021

  1. Fix Error prototype

    vweevers committed Sep 19, 2021
    Configuration menu
    Copy the full SHA
    4b77e8f View commit details
    Browse the repository at this point in the history
  2. Use t.is()

    vweevers committed Sep 19, 2021
    Configuration menu
    Copy the full SHA
    fa4c505 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    24c2c77 View commit details
    Browse the repository at this point in the history