From 4de1822fac59b0daf9b741bbf16b386b5c83ec5e Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 9 Dec 2023 16:46:42 -0700 Subject: add descriptive error --- Sources/gopherHandler.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Sources') diff --git a/Sources/gopherHandler.swift b/Sources/gopherHandler.swift index 1c40091..1961a8f 100644 --- a/Sources/gopherHandler.swift +++ b/Sources/gopherHandler.swift @@ -94,7 +94,7 @@ final class GopherHandler: ChannelInboundHandler { } } else { - logger.error("Error reading directory: \(path.path) Error: \(error)") + logger.error("Error reading directory: \(path.path) Directory does not exist.") return .string("3Error reading file...\terror.host\t1\r\n") } -- cgit v1.2.3