Skip to content

Commit

Permalink
fix: better error
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed Jun 29, 2024
1 parent a86b16f commit ced2e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/filesystem/ftp/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ func normalizeError(op string, path string, err error, values ...any) error {
return &os.PathError{
Op: op,
Path: path,
Err: errors.Wrapf(err, "%v", values),
Err: errors.Wrapf(err, "%s: %v", tpErr, values),
}
}

return &os.PathError{
Op: op,
Path: path,
Err: err,
Err: errors.Wrapf(err, "%s", tpErr),
}
}

0 comments on commit ced2e6b

Please sign in to comment.