diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2022-10-04 13:43:17 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2022-10-04 13:43:44 +0100 |
commit | 562334e6a68703a57af6a15cc567ebf40803a376 (patch) | |
tree | 9eb3bb8186c74af7ee74296f4e7feb54b5a8ac8c /pdf/pdf_doc.c | |
parent | 8f1056391d3d58c4a5d20a90eaa1f5d4c604b357 (diff) | |
download | ghostpdl-562334e6a68703a57af6a15cc567ebf40803a376.tar.gz |
GhostPDF - some minor work on warning messages
Correct a typo in error message extra info.
Remove an unconditional print and replace it with a normal warning
(this was causing some timing problems)
Refactor some warning typedefs that were different to all the other
ones (was PDF_W_* instead of W_PDF_*)
Diffstat (limited to 'pdf/pdf_doc.c')
-rw-r--r-- | pdf/pdf_doc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_doc.c b/pdf/pdf_doc.c index f78c78f17..d53222444 100644 --- a/pdf/pdf_doc.c +++ b/pdf/pdf_doc.c @@ -1044,7 +1044,7 @@ int pdfi_find_resource(pdf_context *ctx, unsigned char *Type, pdf_name *name, goto exit; if (code > 0) { code = pdfi_dict_get_no_store_R_key(ctx, typedict, name, o); - pdfi_set_error(ctx, 0, NULL, E_PDF_INHERITED_STREAM_RESOURCE, "pdfi_find_resource", (char *)"Couldn't find named resource in suppled dictionary, or Parents, or Pages, matching name located in earlier stream Resource"); + pdfi_set_error(ctx, 0, NULL, E_PDF_INHERITED_STREAM_RESOURCE, "pdfi_find_resource", (char *)"Couldn't find named resource in supplied dictionary, or Parents, or Pages, matching name located in earlier stream Resource"); goto exit; } pdfi_countdown(typedict); @@ -1054,7 +1054,7 @@ int pdfi_find_resource(pdf_context *ctx, unsigned char *Type, pdf_name *name, } /* If we got all the way down there, we didn't find it */ - dmprintf(ctx->memory, "Couldn't find named resource\n"); + pdfi_set_warning(ctx, 0, NULL, W_PDF_MISSING_NAMED_RESOURCE, "pdfi_find_resource", NULL); code = gs_error_undefined; exit: |