mirror of
https://github.com/mas-cli/mas
synced 2025-02-16 12:38:30 +00:00
🔊 Log errors using printError
This commit is contained in:
parent
4cba212570
commit
62a09bdbb7
3 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ public struct AccountCommand: CommandProtocol {
|
|||
if let account = ISStoreAccount.primaryAccount {
|
||||
print(String(describing: account.identifier))
|
||||
} else {
|
||||
print("Not signed in")
|
||||
printError("Not signed in")
|
||||
return .failure(.notSignedIn)
|
||||
}
|
||||
return .success(())
|
||||
|
|
|
@ -32,7 +32,7 @@ public struct ListCommand: CommandProtocol {
|
|||
public func run(_: Options) -> Result<Void, MASError> {
|
||||
let products = appLibrary.installedApps
|
||||
if products.isEmpty {
|
||||
print("No installed apps found")
|
||||
printError("No installed apps found")
|
||||
return .success(())
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ public struct LuckyCommand: CommandProtocol {
|
|||
do {
|
||||
let results = try storeSearch.search(for: options.appName).wait()
|
||||
guard let result = results.first else {
|
||||
print("No results found")
|
||||
printError("No results found")
|
||||
return .failure(.noSearchResultsFound)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue