From 4275251f4cdf0cbe7c64ad4e9fecb511041ab7ea Mon Sep 17 00:00:00 2001 From: DarthSim Date: Thu, 18 Oct 2018 17:01:51 +0600 Subject: [PATCH] Properly print processing options parsing error to the log --- processing_options.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/processing_options.go b/processing_options.go index f3ca39d7..c51e6928 100644 --- a/processing_options.go +++ b/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 }