Skip to content

cmd: Support -s to simplify calls to use New/Errorf #21

Description

@prashantv

errtrace.Wrap(errors.New(..)) can be simplified into errtrace.New(...)

Similarly, errtrace.Wrap(fmt.Errorf(...)) can be simplified into errtrace.Errorf(...)

Activity

  1. abhinav commented on Nov 22, 2023

    @abhinav
    Contributor

    Note that this will be a slight change in the errtrace transformation concepts:
    It's currently modeled as "inserts" that only add at specific positions.
    It'll need to change to "edits" that operate over a [start, end) text range it's replacing/modifying.

  2. abhinav commented on Nov 22, 2023

    @abhinav
    Contributor

    With #23, if/when we add -s, it should treat -format=auto as "always"

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions