diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-03-28 16:18:26 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-03-28 16:21:44 +0200 |
commit | 902250d9546c65824c4f804a1527dc471b781f93 (patch) | |
tree | 52b1561ca8667a66621fce599fb92d169822c820 /source/pdf/pdf-type3.c | |
parent | 4918560f7dd434fa5489d4efc442d70835668650 (diff) | |
download | mupdf-902250d9546c65824c4f804a1527dc471b781f93.tar.xz |
pdf: Use FZ_ERROR_SYNTAX code for syntax errors.
Diffstat (limited to 'source/pdf/pdf-type3.c')
-rw-r--r-- | source/pdf/pdf-type3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-type3.c b/source/pdf/pdf-type3.c index 3eeff1f8..bc61b289 100644 --- a/source/pdf/pdf-type3.c +++ b/source/pdf/pdf-type3.c @@ -74,7 +74,7 @@ pdf_load_type3_font(fz_context *ctx, pdf_document *doc, pdf_obj *rdb, pdf_obj *d encoding = pdf_dict_get(ctx, dict, PDF_NAME_Encoding); if (!encoding) { - fz_throw(ctx, FZ_ERROR_GENERIC, "syntaxerror: Type3 font missing Encoding"); + fz_throw(ctx, FZ_ERROR_SYNTAX, "Type3 font missing Encoding"); } if (pdf_is_name(ctx, encoding)) @@ -122,7 +122,7 @@ pdf_load_type3_font(fz_context *ctx, pdf_document *doc, pdf_obj *rdb, pdf_obj *d widths = pdf_dict_get(ctx, dict, PDF_NAME_Widths); if (!widths) { - fz_throw(ctx, FZ_ERROR_GENERIC, "syntaxerror: Type3 font missing Widths"); + fz_throw(ctx, FZ_ERROR_SYNTAX, "Type3 font missing Widths"); } for (i = first; i <= last; i++) @@ -154,7 +154,7 @@ pdf_load_type3_font(fz_context *ctx, pdf_document *doc, pdf_obj *rdb, pdf_obj *d charprocs = pdf_dict_get(ctx, dict, PDF_NAME_CharProcs); if (!charprocs) { - fz_throw(ctx, FZ_ERROR_GENERIC, "syntaxerror: Type3 font missing CharProcs"); + fz_throw(ctx, FZ_ERROR_SYNTAX, "Type3 font missing CharProcs"); } for (i = 0; i < 256; i++) |