mirror of
https://github.com/munki/munki.git
synced 2026-01-06 06:29:56 -06:00
Improve error messages when custom admin scripts fail to run
This commit is contained in:
@@ -120,6 +120,8 @@ func getConditions() async -> PlistDict {
|
||||
}
|
||||
do {
|
||||
let _ = try await runExternalScript(itemPath, timeout: 60)
|
||||
} catch let ProcessError.error(description) {
|
||||
display.error(description)
|
||||
} catch {
|
||||
display.error("Error while running \(itemPath): \(error.localizedDescription)")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user