From bbf13e5424ccbf2da632ef3427217c7779285a9b Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 9 Dec 2023 16:33:36 -0700 Subject: update error message --- Sources/gopherHandler.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Sources') diff --git a/Sources/gopherHandler.swift b/Sources/gopherHandler.swift index e43619d..81a65e2 100644 --- a/Sources/gopherHandler.swift +++ b/Sources/gopherHandler.swift @@ -79,7 +79,7 @@ final class GopherHandler: ChannelInboundHandler { return .string(fileContents) } catch { logger.error("Error reading file: \(path.path)") - return .string("3Error reading file...\r\n") + return .string("3Error reading file...\terror.host\t1\r\n") } } else { // Handle binary file @@ -88,14 +88,14 @@ final class GopherHandler: ChannelInboundHandler { return .data(fileContents) } catch { logger.error("Error reading file: \(path.path)") - return .string("3Error reading file...\r\n") + return .string("3Error reading file...\terror.host\t1\r\n") } } } } else { logger.error("Error reading file: \(path.path)") - return .string("3Error reading file...\r\n") + return .string("3Error reading file...\terror.host\t1\r\n") } } -- cgit v1.2.3