Skip to content

Commit

Permalink
return error
Browse files Browse the repository at this point in the history
  • Loading branch information
dlicheva committed Jan 27, 2025
1 parent cbb672d commit 9bff9cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions new-components/reporters/pdf/internal/reporter/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ func (p PdfReporter) Report(
logger.Info("uploading to S3")
err = p.uploadToS3(resultFilename, pdfBytes, s3)
if err != nil {
logger.Error("could not upload to S3")
return err
return fmt.Errorf("could not upload to S3: %w", err)
}
logger.Info("SUCCESS: uploaded to S3")
return nil
Expand Down

0 comments on commit 9bff9cc

Please sign in to comment.