Improve error output.

Partial #592

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
Ross Goldberg 2024-10-21 07:41:22 -04:00
parent 65218eff74
commit fcf8ba29f6
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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