diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2023-12-09 16:33:36 -0700 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2023-12-09 16:33:36 -0700 |
commit | bbf13e5424ccbf2da632ef3427217c7779285a9b (patch) | |
tree | 526ce788dfe8afdaf1d5df8e850bb171f58fc8ed | |
parent | 81f90e6340e84027bb62a15f8fa5048da9842b32 (diff) |
update error message
-rw-r--r-- | Sources/gopherHandler.swift | 6 | ||||
-rw-r--r-- | example-gopherdata/gophermap | 3 |
2 files changed, 4 insertions, 5 deletions
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") } } diff --git a/example-gopherdata/gophermap b/example-gopherdata/gophermap index ebe9e1b..ada23a6 100644 --- a/example-gopherdata/gophermap +++ b/example-gopherdata/gophermap @@ -23,5 +23,4 @@ i Welcome to your Gopherspace! 1example /example localhost 8080 0hello_world.txt /hello_world.txt localhost 8080 -1Other Gopher servers in the world (via Floodgap) /world gopher.floodgap.com 70 - +1Other Gopher servers in the world (via Floodgap) /world gopher.floodgap.com 70
\ No newline at end of file |