We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f89612e commit aec7575Copy full SHA for aec7575
1 file changed
Sources/Compiler/Config.swift
@@ -17,7 +17,11 @@ public struct Config: Codable {
17
public let tableNamePattern: String?
18
19
struct NotFoundError: Error, CustomStringConvertible {
20
- var description: String { "Config does not exist" }
+ let searchURL: URL
21
+
22
+ var description: String {
23
+ "Config does not exist in \(searchURL.absoluteString)"
24
+ }
25
}
26
27
public init(at path: String) throws {
@@ -28,7 +32,7 @@ public struct Config: Codable {
28
32
29
33
30
34
guard FileManager.default.fileExists(atPath: url.path) else {
31
- throw NotFoundError()
35
+ throw NotFoundError(searchURL: url)
36
37
38
let data = try Data(contentsOf: url)
0 commit comments