Fix config loading
This commit is contained in:
parent
13742551ef
commit
782cc107e2
@ -1,3 +1,2 @@
|
||||
/data/logs/caps/server.log
|
||||
/data/servers/caps/Public
|
||||
|
||||
|
@ -17,7 +17,7 @@ public func configure(_ app: Application) throws {
|
||||
.components(separatedBy: "\n")
|
||||
.map { $0.trimmingCharacters(in: .whitespaces) }
|
||||
.filter { !$0.isEmpty }
|
||||
guard configData.count == 2 else {
|
||||
guard configData.count >= 2 else {
|
||||
throw CapError.invalidConfiguration
|
||||
}
|
||||
let logFile = URL(fileURLWithPath: configData[0])
|
||||
|
Loading…
Reference in New Issue
Block a user