From 31dfe8117452d125f6a9ac1b64b55d8976e8a442 Mon Sep 17 00:00:00 2001 From: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> Date: Tue, 29 Oct 2024 04:08:56 -0400 Subject: [PATCH] Improve `lucky` & `search` error message. Partial #533 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> --- Sources/mas/Errors/MASError.swift | 2 +- Tests/masTests/Errors/MASErrorTestCase.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/mas/Errors/MASError.swift b/Sources/mas/Errors/MASError.swift index 3b9816a..f247fe3 100644 --- a/Sources/mas/Errors/MASError.swift +++ b/Sources/mas/Errors/MASError.swift @@ -85,7 +85,7 @@ extension MASError: CustomStringConvertible { case .searchFailed: return "Search failed" case .noSearchResultsFound: - return "No results found" + return "No apps found" case .unknownAppID(let appID): return "Unknown app ID \(appID)" case .noVendorWebsite: diff --git a/Tests/masTests/Errors/MASErrorTestCase.swift b/Tests/masTests/Errors/MASErrorTestCase.swift index 027a196..3a115b3 100644 --- a/Tests/masTests/Errors/MASErrorTestCase.swift +++ b/Tests/masTests/Errors/MASErrorTestCase.swift @@ -100,7 +100,7 @@ class MASErrorTestCase: XCTestCase { func testNoSearchResultsFound() { error = .noSearchResultsFound - XCTAssertEqual(error.description, "No results found") + XCTAssertEqual(error.description, "No apps found") } func testNoVendorWebsite() {