From 8b64d3c335dd2b913ed00c4658e1f405df28d86d Mon Sep 17 00:00:00 2001 From: Nicolas Bock Date: Wed, 27 Sep 2023 10:45:49 -0600 Subject: [PATCH] Log error message Signed-off-by: Nicolas Bock --- pkg/processor/processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/processor/processor.go b/pkg/processor/processor.go index 980bc94..0cce137 100644 --- a/pkg/processor/processor.go +++ b/pkg/processor/processor.go @@ -158,7 +158,7 @@ func (runner *ReportRunner) UploadAndSaveReport(report *ReportToExecute, caseNum dst_fname := fmt.Sprintf(DefaultReportOutputFormat, uploadPath, report.Name, scriptName) uploadedFilePath, err := runner.FilescomClient.Upload(string(output), dst_fname) if err != nil { - return fmt.Errorf("Failed to upload file '%s'", dst_fname) + return fmt.Errorf("Failed to upload file '%s': %s", dst_fname, err.Error()) } log.Debugf("Successfully uploaded file '%s'", uploadedFilePath.Path)