Explorar o código

Properly print processing options parsing error to the log

DarthSim %!s(int64=6) %!d(string=hai) anos
pai
achega
4275251f4c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      processing_options.go

+ 4 - 0
processing_options.go

@@ -652,6 +652,10 @@ func parsePath(ctx context.Context, rctx *fasthttp.RequestCtx) (context.Context,
 		imageURL, po, err = parsePathAdvanced(parts[1:], acceptHeader)
 	}
 
+	if err != nil {
+		return ctx, err
+	}
+
 	if _, err = url.ParseRequestURI(imageURL); err != nil {
 		return ctx, errInvalidImageURL
 	}