From 32082dd04c898f08aa88a3e82fff8c2d18ddc23b Mon Sep 17 00:00:00 2001 From: Mike Zeller Date: Mon, 6 Nov 2023 12:44:46 -0500 Subject: [PATCH] Fix non illumos platforms --- gateway/src/bin/mgs.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway/src/bin/mgs.rs b/gateway/src/bin/mgs.rs index 79fd025867..8754c26c30 100644 --- a/gateway/src/bin/mgs.rs +++ b/gateway/src/bin/mgs.rs @@ -216,7 +216,7 @@ fn read_smf_config() -> Result { #[cfg(not(target_os = "illumos"))] fn read_smf_config() -> Result { - Err(CmdError::Failure( - "SMF configuration only available on illumos".to_string(), - )) + Err(CmdError::Failure(anyhow!( + "SMF configuration only available on illumos" + ))) }