Browse Source

Add category to downloading error

DarthSim 1 month ago
parent
commit
7f0bcdb788
1 changed files with 1 additions and 1 deletions
  1. 1 1
      processing_handler.go

+ 1 - 1
processing_handler.go

@@ -389,7 +389,7 @@ func handleProcessing(reqID string, rw http.ResponseWriter, r *http.Request) err
 			return ierrors.Wrap(terr, 0, ierrors.WithCategory(categoryTimeout))
 		}
 
-		ierr := ierrors.Wrap(err, 0)
+		ierr := ierrors.Wrap(err, 0, ierrors.WithCategory(categoryDownload))
 		if config.ReportDownloadingErrors {
 			ierr = ierrors.Wrap(ierr, 0, ierrors.WithShouldReport(true))
 		}