From fcf8ba29f6ff2acfefd40203840c571bef91ff6b Mon Sep 17 00:00:00 2001 From: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> Date: Mon, 21 Oct 2024 07:41:22 -0400 Subject: [PATCH] Improve error output. Partial #592 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> --- Sources/mas/Commands/Lucky.swift | 2 +- Sources/mas/Commands/Reset.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/mas/Commands/Lucky.swift b/Sources/mas/Commands/Lucky.swift index b79c776..16c7948 100644 --- a/Sources/mas/Commands/Lucky.swift +++ b/Sources/mas/Commands/Lucky.swift @@ -44,7 +44,7 @@ extension Mas { } guard let appID else { - fatalError() + fatalError("app ID returned from Apple is null") } try install(appID: appID, appLibrary: appLibrary) diff --git a/Sources/mas/Commands/Reset.swift b/Sources/mas/Commands/Reset.swift index 0ddc210..6698780 100644 --- a/Sources/mas/Commands/Reset.swift +++ b/Sources/mas/Commands/Reset.swift @@ -61,7 +61,7 @@ extension Mas { if kill.terminationStatus != 0, debug { let output = stderr.fileHandleForReading.readDataToEndOfFile() - printInfo("killall failed:\r\n\(String(data: output, encoding: String.Encoding.utf8)!)") + printError("killall failed:\n\(String(data: output, encoding: String.Encoding.utf8)!)") } // Wipe Download Directory