From c70329c22b78fdab7c21b8d9db1cdeede3689d7e Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Sat, 24 Feb 2024 14:55:48 +0100 Subject: [PATCH] chore(api): improve gotenberg.ErrPdfFormatNotSupported HTTP message --- pkg/modules/api/middlewares.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/modules/api/middlewares.go b/pkg/modules/api/middlewares.go index ad24060f..d40c1432 100644 --- a/pkg/modules/api/middlewares.go +++ b/pkg/modules/api/middlewares.go @@ -45,7 +45,7 @@ func ParseError(err error) (int, string) { } if errors.Is(err, gotenberg.ErrPdfFormatNotSupported) { - return http.StatusBadRequest, "A least one PDF engine does not handle one of the requested PDF format, while other have failed to convert for other reasons" + return http.StatusBadRequest, "At least one PDF engine cannot process the requested PDF format, while others may have failed to convert due to different issues" } var httpErr HttpError