]> xenbits.xensource.com Git - xen-guest-agent.git/commitdiff
Use panic!() not abort!()
authorYann Dirson <yann.dirson@vates.fr>
Mon, 18 Dec 2023 15:24:12 +0000 (16:24 +0100)
committerYann Dirson <yann.dirson@vates.fr>
Wed, 20 Dec 2023 16:34:15 +0000 (17:34 +0100)
Hopefully we won't really need that safeguard, but it's still nice to be
able to compile non non-unix platforms.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
src/main.rs

index f193874b678adf293403a33a66b46dcb939f6b48..d582afa2b436d4f378dfc56882b357f621096b64 100644 (file)
@@ -118,7 +118,7 @@ fn setup_logger(use_stderr:bool, loglevel_string: &str) -> Result<(), Box<dyn Er
         setup_env_logger(loglevel_string)?;
     } else {
         #[cfg(not(unix))]
-        abort!();
+        panic!("no system logger supported");
 
         #[cfg(unix)]
         setup_system_logger(loglevel_string)?;