Skip to content

Commit 0c78bc5

Browse files
committed
Print input path
1 parent aec7575 commit 0c78bc5

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Sources/Compiler/Config.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ public struct Config: Codable {
1717
public let tableNamePattern: String?
1818

1919
struct NotFoundError: Error, CustomStringConvertible {
20-
let searchURL: URL
20+
let searchPath: String
2121

2222
var description: String {
23-
"Config does not exist in \(searchURL.absoluteString)"
23+
"Config does not exist in '\(searchPath)'"
2424
}
2525
}
2626

@@ -32,7 +32,7 @@ public struct Config: Codable {
3232
}
3333

3434
guard FileManager.default.fileExists(atPath: url.path) else {
35-
throw NotFoundError(searchURL: url)
35+
throw NotFoundError(searchPath: url.path)
3636
}
3737

3838
let data = try Data(contentsOf: url)

Sources/PureSQLCLI/GenerateCommand.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ struct GenerateCommand: AsyncParsableCommand {
3535
var dump = false
3636

3737
mutating func run() async throws {
38+
print("Path: \(path)")
39+
3840
let config = try Config(at: path)
3941
var project = config.project(at: path)
4042

0 commit comments

Comments
 (0)