Improve error messages when custom admin scripts fail to run

This commit is contained in:
Greg Neagle
2025-07-11 17:22:00 -07:00
parent 6fe6bf9425
commit 9d6ad57d0d

View File

@@ -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)")
}