diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-08-12 11:56:28 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-08-12 11:56:28 +0200 |
commit | bb0251a59a6cc5c1cb7cb0b31f7e74397db4e348 (patch) | |
tree | 18d5564945748f147b72fc5455ec4799c4dd5806 /source/tools | |
parent | f3fe0fd47ff5477748357b77b3c90c665a460db4 (diff) | |
download | mupdf-bb0251a59a6cc5c1cb7cb0b31f7e74397db4e348.tar.xz |
Change error messages in mutool extract to follow the house style.
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/pdfextract.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/tools/pdfextract.c b/source/tools/pdfextract.c index f3a11231..b46cccbd 100644 --- a/source/tools/pdfextract.c +++ b/source/tools/pdfextract.c @@ -120,7 +120,7 @@ static void savefont(pdf_obj *dict, int num) obj = pdf_dict_gets(obj, "Subtype"); if (obj && !pdf_is_name(obj)) - fz_throw(ctx, FZ_ERROR_GENERIC, "Invalid font descriptor subtype"); + fz_throw(ctx, FZ_ERROR_GENERIC, "invalid font descriptor subtype"); subtype = pdf_to_name(obj); if (!strcmp(subtype, "Type1C")) @@ -130,12 +130,12 @@ static void savefont(pdf_obj *dict, int num) else if (!strcmp(subtype, "OpenType")) ext = "otf"; else - fz_throw(ctx, FZ_ERROR_GENERIC, "Unhandled font type '%s'", subtype); + fz_throw(ctx, FZ_ERROR_GENERIC, "unhandled font type '%s'", subtype); } if (!stream) { - fz_warn(ctx, "Unhandled font type"); + fz_warn(ctx, "unhandled font type"); return; } @@ -146,15 +146,15 @@ static void savefont(pdf_obj *dict, int num) f = fopen(namebuf, "wb"); if (!f) - fz_throw(ctx, FZ_ERROR_GENERIC, "Error creating font file"); + fz_throw(ctx, FZ_ERROR_GENERIC, "cannot create font file"); len = fz_buffer_storage(ctx, buf, &data); n = fwrite(data, 1, len, f); if (n < len) - fz_throw(ctx, FZ_ERROR_GENERIC, "Error writing font file"); + fz_throw(ctx, FZ_ERROR_GENERIC, "cannot write font file"); if (fclose(f) < 0) - fz_throw(ctx, FZ_ERROR_GENERIC, "Error closing font file"); + fz_throw(ctx, FZ_ERROR_GENERIC, "cannot close font file"); fz_drop_buffer(ctx, buf); } |