Skip to content

Deprecate error types without spans #4323

Open

Description

@kubouch

Errors that do not have spans are not very useful because they do not point at where the error happened. Example is ShellError::IOError. Maybe we should modify all error types to require a span and pass call.head to it as a bare minimum. There might be exceptions where this is not possible but in general I would strive to require spans on as many error types as possible.

Related: #4326

Activity

  1. transferred this issue fromnushell/engine-qon Feb 7, 2022
  2. sophiajt commented on Aug 9, 2023

    @sophiajt
    Contributor

    Sadly still a problem. We don't always have span info, but we should come up with some solution so we never point at (0, 0)

  3. added
    help wanted
    and removed on Aug 9, 2023
  4. added a commit that references this issue on Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedstatus:needs-design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions