Skip to content

Commit

Permalink
Fix non illumos platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
papertigers committed Nov 6, 2023
1 parent f5a7964 commit 32082dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gateway/src/bin/mgs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ fn read_smf_config() -> Result<ConfigProperties, CmdError> {

#[cfg(not(target_os = "illumos"))]
fn read_smf_config() -> Result<ConfigProperties, CmdError> {
Err(CmdError::Failure(
"SMF configuration only available on illumos".to_string(),
))
Err(CmdError::Failure(anyhow!(
"SMF configuration only available on illumos"
)))
}

0 comments on commit 32082dd

Please sign in to comment.