diff options
author | Brian C. Lane <bcl@redhat.com> | 2020-11-12 16:19:36 -0800 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2020-11-20 14:00:58 -0800 |
commit | c21ee3827639343920d3f08cff319620d3582d2a (patch) | |
tree | d4771a1068f985539ac96e4b58c9981d40e58fa7 | |
parent | 65d95eaf5692f7d19f2b550dee4c9b585ce79938 (diff) | |
download | parted-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.c | 2 |
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 (); |