diff options
Diffstat (limited to 'util/error.c')
-rw-r--r-- | util/error.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/error.c b/util/error.c index 712b4d4b5d..ea6d1a3d7e 100644 --- a/util/error.c +++ b/util/error.c @@ -34,7 +34,10 @@ static void error_handle_fatal(Error **errp, Error *err) if (errp == &error_abort) { fprintf(stderr, "Unexpected error in %s() at %s:%d:\n", err->func, err->src, err->line); - error_report_err(err); + error_report("%s", error_get_pretty(err)); + if (err->hint) { + error_printf("%s", err->hint->str); + } abort(); } if (errp == &error_fatal) { |