From 1c2ca837538468b080e20acf2460959ed98c0e07 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 13 Jan 2025 15:11:07 +0800 Subject: Log EOF differently from other errors --- errors.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'errors.go') diff --git a/errors.go b/errors.go index 7ee429a..b0d0247 100644 --- a/errors.go +++ b/errors.go @@ -5,7 +5,10 @@ import ( "strings" ) -var err_unsupported_database_type = errors.New("Unsupported database type; only \"postgres\" is currently supported") +var ( + err_unsupported_database_type = errors.New("Unsupported database type; only \"postgres\" is currently supported") + err_connection_handler_eof = errors.New("Connection handler encountered EOF") +) type err_local_recipients_not_found_t []string -- cgit v1.2.3