From eeddda3ec6c28b411d33c74938ec6198c7f6888d Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Thu, 18 Oct 2018 07:38:47 +0330 Subject: [PATCH] [util] Better file-not-found error from hb-shape / hb-view fixes #1266 --- util/options.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/options.cc b/util/options.cc index 26b0bd0a8..5661cd059 100644 --- a/util/options.cc +++ b/util/options.cc @@ -660,7 +660,7 @@ font_options_t::get_font (void) const blob = hb_blob_create_from_file (font_path); if (blob == hb_blob_get_empty ()) - fail (false, "No such file or directory"); + fail (false, "Couldn't read or find %s, or it was empty.", font_path); /* Create the face */ hb_face_t *face = hb_face_create (blob, face_index);