Explorar o código

Add category to downloading error

DarthSim hai 1 mes
pai
achega
7f0bcdb788
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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))
 		}