chore(api): improve gotenberg.ErrPdfFormatNotSupported HTTP message

This commit is contained in:
Julien Neuhart
2024-02-24 14:55:48 +01:00
parent 34f69263a2
commit c70329c22b

View File

@@ -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