summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2020-11-12 16:19:36 -0800
committerBrian C. Lane <bcl@redhat.com>2020-11-20 14:00:58 -0800
commitc21ee3827639343920d3f08cff319620d3582d2a (patch)
treed4771a1068f985539ac96e4b58c9981d40e58fa7
parent65d95eaf5692f7d19f2b550dee4c9b585ce79938 (diff)
downloadparted-c21ee3827639343920d3f08cff319620d3582d2a.tar.gz
ped_assert: Fix incorrect exception option
PED_EXCEPTION_FATAL is a type, not an option. A PED_EXCEPTION_BUG should always select CANCEL.
-rw-r--r--libparted/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libparted/debug.c b/libparted/debug.c
index c4932ca..227673e 100644
--- a/libparted/debug.c
+++ b/libparted/debug.c
@@ -106,7 +106,7 @@ void ped_assert (const char* cond_text,
/* Throw the exception */
ped_exception_throw (
PED_EXCEPTION_BUG,
- PED_EXCEPTION_FATAL,
+ PED_EXCEPTION_CANCEL,
_("Assertion (%s) at %s:%d in function %s() failed."),
cond_text, file, line, function);
abort ();