Skip to content

Commit

Permalink
fix: report hook error details if occured
Browse files Browse the repository at this point in the history
  • Loading branch information
RaVbaker committed Mar 23, 2021
1 parent fb52229 commit 3a847d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/s3/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ func Upload(bucket, region, filesPath string, partContext parts.Context, ctx spe
println(err.Error())
return
}
hooks.Runner(path, filename, ctx, partContext)
err = hooks.Runner(path, filename, ctx, partContext)
if err != nil {
println("hook error", err.Error())
}
}
return
}
Expand Down

0 comments on commit 3a847d7

Please sign in to comment.