From ced2e6b0d2b47805da5eccae00db6354a718bfe3 Mon Sep 17 00:00:00 2001 From: Morlay Date: Sat, 29 Jun 2024 15:36:12 +0800 Subject: [PATCH] fix: better error --- pkg/filesystem/ftp/errors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/filesystem/ftp/errors.go b/pkg/filesystem/ftp/errors.go index 61e4a39..0367b9b 100644 --- a/pkg/filesystem/ftp/errors.go +++ b/pkg/filesystem/ftp/errors.go @@ -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), } }