Fix config path
This commit is contained in:
parent
4baa6a6973
commit
8b1d63bb95
@ -101,7 +101,7 @@ private func createFileIfNeeded(at path: URL) throws {
|
||||
private func readConfig(at path: URL) throws -> URL {
|
||||
do {
|
||||
let logPath = try String(contentsOf: path)
|
||||
.trimmingCharacters(in: .whitespaces)
|
||||
.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
return URL(fileURLWithPath: logPath)
|
||||
} catch {
|
||||
log("Failed to read configuration file at \(path.path): \(error)")
|
||||
|
Loading…
Reference in New Issue
Block a user