diff --git a/util/options.hh b/util/options.hh index 9ad2225d5..42bb8c46e 100644 --- a/util/options.hh +++ b/util/options.hh @@ -416,11 +416,9 @@ struct shape_options_t : option_group_t *error = "Safe-to-break test failed."; ret = false; - if (0) - { - hb_buffer_set_length (buffer, 0); - hb_buffer_append (buffer, reconstruction, 0, -1); - } + /* Return the reconstructed result instead so it can be inspected. */ + hb_buffer_set_length (buffer, 0); + hb_buffer_append (buffer, reconstruction, 0, -1); } hb_buffer_destroy (reconstruction); diff --git a/util/view-cairo.hh b/util/view-cairo.hh index d3e59afa5..bf56da3c8 100644 --- a/util/view-cairo.hh +++ b/util/view-cairo.hh @@ -59,7 +59,7 @@ struct view_cairo_t } void error (const char *message) { - fail (false, "%s", message); + g_printerr ("%s: %s\n", g_get_prgname (), message); } void consume_glyphs (hb_buffer_t *buffer, const char *text,