diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2023-02-04 20:48:57 -0500 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2023-02-04 21:16:18 -0500 |
| commit | 6af93cd2bd89d38ade8d9384fe3798aed1a38a65 (patch) | |
| tree | 5a505a798217963cd8aa89e54767cd1a8d38feea /data/datasource_stdin.go | |
| parent | 08d70cf321ffede08205594ae4e7633f944647da (diff) | |
Remove uses of pkg/errors
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'data/datasource_stdin.go')
| -rw-r--r-- | data/datasource_stdin.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/data/datasource_stdin.go b/data/datasource_stdin.go index 4592b209..98fbefb3 100644 --- a/data/datasource_stdin.go +++ b/data/datasource_stdin.go @@ -2,10 +2,9 @@ package data import ( "context" + "fmt" "io" "os" - - "github.com/pkg/errors" ) func readStdin(ctx context.Context, source *Source, args ...string) ([]byte, error) { @@ -13,7 +12,7 @@ func readStdin(ctx context.Context, source *Source, args ...string) ([]byte, err b, err := io.ReadAll(stdin) if err != nil { - return nil, errors.Wrapf(err, "Can't read %s", stdin) + return nil, fmt.Errorf("can't read %s: %w", stdin, err) } return b, nil } |
