[util] Better file-not-found error from hb-shape / hb-view

fixes #1266
This commit is contained in:
Ebrahim Byagowi 2018-10-18 07:38:47 +03:30 committed by GitHub
parent 751c10e55e
commit eeddda3ec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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);