From bb0251a59a6cc5c1cb7cb0b31f7e74397db4e348 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 12 Aug 2014 11:56:28 +0200 Subject: Change error messages in mutool extract to follow the house style. --- source/tools/pdfextract.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/tools') 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); } -- cgit v1.2.3