fix(libreoffice): wrong HTTP status codes if invalid PDF formats

This commit is contained in:
Julien Neuhart
2024-01-18 12:00:32 +01:00
parent e5194b313d
commit b8926350b9
7 changed files with 44 additions and 7 deletions

View File

@@ -21,9 +21,9 @@ func init() {
}
var (
// ErrInvalidPdfFormat happens if the PDF format option cannot be handled
// ErrInvalidPdfFormats happens if the PDF formats option cannot be handled
// by LibreOffice.
ErrInvalidPdfFormat = errors.New("invalid PDF format")
ErrInvalidPdfFormats = errors.New("invalid PDF formats")
// ErrMalformedPageRanges happens if the page ranges option cannot be
// interpreted by LibreOffice.