From 06f013bc5c177e9e909761ea6962dfafab0ca582 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Thu, 24 Feb 2022 12:31:00 +0100 Subject: [PATCH] Print configuration errors --- Sources/App/configure.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/App/configure.swift b/Sources/App/configure.swift index 9b26ade..feba30c 100755 --- a/Sources/App/configure.swift +++ b/Sources/App/configure.swift @@ -18,6 +18,7 @@ public func configure(_ app: Application) throws { .map { $0.trimmingCharacters(in: .whitespaces) } .filter { !$0.isEmpty } guard configData.count >= 2 else { + print("Invalid configuration file: \(configData.count) lines") throw CapError.invalidConfiguration } let logFile = URL(fileURLWithPath: configData[0])