fix(api): do not catch gotenberg.ErrPdfEngineMethodNotSupported as it may hides other errors

This commit is contained in:
Julien Neuhart
2024-03-04 11:17:36 +01:00
parent 804fcff5b6
commit 0f8bbead66
2 changed files with 0 additions and 9 deletions

View File

@@ -38,11 +38,6 @@ func TestParseError(t *testing.T) {
expectStatus: http.StatusTooManyRequests,
expectMessage: http.StatusText(http.StatusTooManyRequests),
},
{
err: gotenberg.ErrPdfEngineMethodNotSupported,
expectStatus: http.StatusNotImplemented,
expectMessage: http.StatusText(http.StatusNotImplemented),
},
{
err: gotenberg.ErrPdfFormatNotSupported,
expectStatus: http.StatusBadRequest,