Skip to content

Commit 38440c5

Browse files
committed
Use string init
1 parent 7eb6d7a commit 38440c5

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

Sources/Compiler/Config.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ public struct Config: Codable {
2525
}
2626

2727
public init(at path: String) throws {
28-
print("Input Path: \(path)")
29-
var url = URL(fileURLWithPath: path)
30-
print("URL: \(url)")
31-
print("URL not file: \(URL(string: path)!)")
28+
guard var url = URL(string: path) else {
29+
throw NotFoundError(searchPath: path)
30+
}
3231

3332
if url.lastPathComponent != "puresql.yaml" {
3433
url.appendPathComponent("puresql.yaml")

Sources/PureSQLCLI/GenerateCommand.swift

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

3737
mutating func run() async throws {
38-
print("Path: \(path)")
39-
4038
let config = try Config(at: path)
4139
var project = config.project(at: path)
4240

0 commit comments

Comments
 (0)