[parted-devel] [PATCH] libparted/debug.c: Use unhandled option in ped_assert

Will Newton will.newton at gmail.com
Fri Jul 21 13:22:00 UTC 2017


PED_EXCEPTION_FATAL is an exception type not an exception
option so cannot be passed as the second argument. Pass
PED_EXCEPTION_UNHANDLED instead.

Signed-off-by: Will Newton <willn at resin.io>
---
 libparted/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libparted/debug.c b/libparted/debug.c
index c47a9f5..25be60b 100644
--- a/libparted/debug.c
+++ b/libparted/debug.c
@@ -105,7 +105,7 @@ void ped_assert (const char* cond_text,
         /* Throw the exception */
         ped_exception_throw (
                 PED_EXCEPTION_BUG,
-                PED_EXCEPTION_FATAL,
+                PED_EXCEPTION_UNHANDLED,
                 _("Assertion (%s) at %s:%d in function %s() failed."),
                 cond_text, file, line, function);
         abort ();
-- 
2.9.4




More information about the parted-devel mailing list