Skip to content

Commit 1b32082

Browse files
committed
Correct grammer
1 parent 340b8e6 commit 1b32082

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/ProjectSpec/Project.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ extension Project {
177177
do {
178178
settings = try jsonDictionary.json(atKeyPath: "settings")
179179
} catch let specParsingError as SpecParsingError {
180-
// Rethrow SpecParsingError to prevent misuse of settings.configs
180+
// Re-throw `SpecParsingError` to prevent the misuse of settings.configs.
181181
throw specParsingError
182182
} catch {
183-
// Ignore any errors other than SpecParsingError
183+
// Ignore all errors except `SpecParsingError`
184184
settings = .empty
185185
}
186186

Sources/ProjectSpec/SpecParsingError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public enum SpecParsingError: Error, CustomStringConvertible {
4848
case let .unknownBreakpointActionSoundName(name):
4949
return "Unknown Breakpoint Action sound name: \(name)"
5050
case let .invalidConfigsMappingFormat(keys):
51-
return "The value for \"\(keys.sorted().joined(separator: ", "))\" in configs must be a dictionary"
51+
return "Invalid format: The value for \"\(keys.sorted().joined(separator: ", "))\" in `configs` must be mapping format"
5252
}
5353
}
5454
}

0 commit comments

Comments
 (0)