mirror of
https://github.com/mas-cli/mas
synced 2025-02-16 12:38:30 +00:00
Improve error output.
Partial #592 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
parent
65218eff74
commit
fcf8ba29f6
2 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ extension Mas {
|
||||||
}
|
}
|
||||||
|
|
||||||
guard let appID else {
|
guard let appID else {
|
||||||
fatalError()
|
fatalError("app ID returned from Apple is null")
|
||||||
}
|
}
|
||||||
|
|
||||||
try install(appID: appID, appLibrary: appLibrary)
|
try install(appID: appID, appLibrary: appLibrary)
|
||||||
|
|
|
@ -61,7 +61,7 @@ extension Mas {
|
||||||
|
|
||||||
if kill.terminationStatus != 0, debug {
|
if kill.terminationStatus != 0, debug {
|
||||||
let output = stderr.fileHandleForReading.readDataToEndOfFile()
|
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
|
// Wipe Download Directory
|
||||||
|
|
Loading…
Add table
Reference in a new issue