summaryrefslogtreecommitdiffstats
path: root/util/error.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-12-18 16:35:08 +0100
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:28:24 -0600
commitf89fcbe7c2aee46cae7b45120e4389ee42f8e96c (patch)
tree40c571feb49b6ad80fa3e4474460630242aae5e8 /util/error.c
parent000750b0c66a3eb1a71d6f01ae39eda8f56626ad (diff)
downloadhqemu-f89fcbe7c2aee46cae7b45120e4389ee42f8e96c.zip
hqemu-f89fcbe7c2aee46cae7b45120e4389ee42f8e96c.tar.gz
error: Improve documentation
While there, tighten error_append_hint()'s assertion. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1450452927-8346-6-git-send-email-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'util/error.c')
-rw-r--r--util/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/error.c b/util/error.c
index 9b27c45..ebfb74b 100644
--- a/util/error.c
+++ b/util/error.c
@@ -132,7 +132,7 @@ void error_append_hint(Error **errp, const char *fmt, ...)
return;
}
err = *errp;
- assert(err && errp != &error_abort);
+ assert(err && errp != &error_abort && errp != &error_fatal);
if (!err->hint) {
err->hint = g_string_new(NULL);
OpenPOWER on IntegriCloud