[util] Better file-not-found error from hb-shape / hb-view
authorEbrahim Byagowi <ebrahim@gnu.org>
Thu, 18 Oct 2018 04:08:47 +0000 (07:38 +0330)
committerGitHub <noreply@github.com>
Thu, 18 Oct 2018 04:08:47 +0000 (07:38 +0330)
fixes #1266

util/options.cc

index 26b0bd0..5661cd0 100644 (file)
@@ -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);