From 057eaf7c85872bc5cf7b40f7ae4826a23665a888 Mon Sep 17 00:00:00 2001 From: "Brian J. Tarricone" Date: Mon, 30 May 2022 17:48:49 -0700 Subject: [PATCH] Ensure we don't exit successfully if the main loop exits We never quit the main loop, but if something odd happens that causes it to quit outside our control, ensure that we don't return the "auth success" status code. --- dialog-gtk3/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dialog-gtk3/src/main.rs b/dialog-gtk3/src/main.rs index a49f81e..47a8894 100644 --- a/dialog-gtk3/src/main.rs +++ b/dialog-gtk3/src/main.rs @@ -324,8 +324,7 @@ fn main() -> anyhow::Result<()> { dialog.show_all(); gtk::main(); - - Ok(()) + DialogExitStatus::OtherError.exit(); // We should never get here! } fn set_time_label(label: >k::Label) {