Skip to content

Commit 5562ab0

Browse files
committed
fix: change logger description
1 parent 6799873 commit 5562ab0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/FSAppConfiguration/FSAppConfiguration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ public struct FSAppConfiguration {
197197
self.app.logger.error("ERROR: Failed decode ClientResponse from consul. LocalizedError - \(error.localizedDescription), error - \(error). For path - '\(path)'")
198198
}
199199
guard let stringValue = content.first?.value else {
200-
self.app.logger.error("ERROR: No value was found at the given key - '\(String(describing: content.first?.key))'")
201-
fatalError("ERROR: No value was found at the given key - '\(String(describing: content.first?.key))'")
200+
self.app.logger.error("ERROR: No value was found at the - '\(path)'")
201+
fatalError("ERROR: No value was found at the - '\(path)'")
202202
}
203203
guard let arrayOfRawBytes = Array(decodingBase64: stringValue) else {
204204
self.app.logger.error("ERROR: Failed encoded '\(stringValue)' to 'Data'")

Sources/FSAppConfiguration/FSAppConfigurationAsync.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ public struct FSAppConfigurationAsync {
197197
self.app.logger.error("ERROR: Failed decode ClientResponse from consul. LocalizedError - \(error.localizedDescription), error - \(error). For path - '\(path)'")
198198
}
199199
guard let stringValue = content.first?.value else {
200-
self.app.logger.error("ERROR: No value was found at the given key - '\(String(describing: content.first?.key))'")
201-
fatalError("ERROR: No value was found at the given key - '\(String(describing: content.first?.key))'")
200+
self.app.logger.error("ERROR: No value was found at the - '\(path)'")
201+
fatalError("ERROR: No value was found at the - '\(path)'")
202202
}
203203
guard let arrayOfRawBytes = Array(decodingBase64: stringValue) else {
204204
self.app.logger.error("ERROR: Failed encoded '\(stringValue)' to 'Data'")

0 commit comments

Comments
 (0)