aboutsummaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/error.c b/error.c
index 648706aa67..2d34cde654 100644
--- a/error.c
+++ b/error.c
@@ -64,6 +64,11 @@ bool error_is_set(Error **errp)
return (errp && *errp);
}
+ErrorClass error_get_class(const Error *err)
+{
+ return err->err_class;
+}
+
const char *error_get_pretty(Error *err)
{
return err->msg;