Better errors on failed squeeze
This commit is contained in:
parent
953cf0acc5
commit
678a25191d
7
cpdf.ml
7
cpdf.ml
|
@ -249,7 +249,12 @@ let squeeze pdf =
|
||||||
Pdfcodec.flate_level := 9;
|
Pdfcodec.flate_level := 9;
|
||||||
ignore (recompress_pdf pdf)
|
ignore (recompress_pdf pdf)
|
||||||
with
|
with
|
||||||
e -> raise (Pdf.PDFError "Squeeze failed. No output written")
|
e ->
|
||||||
|
raise
|
||||||
|
(Pdf.PDFError
|
||||||
|
(Printf.sprintf
|
||||||
|
"Squeeze failed. No output written.\n Proximate error was:\n %s"
|
||||||
|
(Printexc.to_string e)))
|
||||||
|
|
||||||
type encoding =
|
type encoding =
|
||||||
| Raw
|
| Raw
|
||||||
|
|
Loading…
Reference in New Issue