Skip to content

Commit

Permalink
Clean up errors
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Apr 22, 2024
1 parent 92dee71 commit 94da8b6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/planner/macos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,14 @@ async fn check_suis() -> Result<(), PlannerError> {
return Ok(());
},
[block] => format!(
"The following policy blocks mounting internal disks:\n\n{}",
"The following macOS profile policy prevents mounting internal hard disks:\n\n{}",
block
),
blocks => {
todo!("{:?}", blocks);
format!(
"The following macOS profile policies prevent mounting internal hard disks:\n\n{}",
block
)
},
};

Expand All @@ -416,7 +419,7 @@ pub enum MacosError {
#[error("`nix-darwin` installation detected, it must be removed before uninstalling Nix. Please refer to https://github.com/LnL7/nix-darwin#uninstalling for instructions how to uninstall `nix-darwin`.")]
UninstallNixDarwin,

#[error("A macOS profile blocks internal hard disk mounting through SystemUIServer: {0}")]
#[error("{0}")]
BlockedBySystemUIServerPolicy(String),
}

Expand Down

0 comments on commit 94da8b6

Please sign in to comment.