Skip to content

Commit

Permalink
change error
Browse files Browse the repository at this point in the history
  • Loading branch information
mcantelon committed Feb 20, 2025
1 parent 482cb7e commit 9d46dda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/am/upload_transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"path/filepath"
"time"

"go.artefactual.dev/tools/temporal"
temporal_tools "go.artefactual.dev/tools/temporal"
temporalsdk_activity "go.temporal.io/sdk/activity"

Expand Down Expand Up @@ -151,7 +150,7 @@ func formatUploadError(err error) error {

switch err.(type) {
case *sftp.AuthError:
return temporal.NewNonRetryableError(e)
return fmt.Errorf("%s: %v", UploadTransferActivityName, err)
default:
return e
}
Expand Down

0 comments on commit 9d46dda

Please sign in to comment.