aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-01-13 15:11:07 +0800
committerRunxi Yu <me@runxiyu.org>2025-01-13 15:11:07 +0800
commit1c2ca837538468b080e20acf2460959ed98c0e07 (patch)
tree45ccf03c062dc8bfb8bb95e3ce9af5331cf353e1 /errors.go
parentUpdate logging code (diff)
downloadmaild-1c2ca837538468b080e20acf2460959ed98c0e07.tar.gz
maild-1c2ca837538468b080e20acf2460959ed98c0e07.tar.zst
maild-1c2ca837538468b080e20acf2460959ed98c0e07.zip
Log EOF differently from other errors
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go5
1 files changed, 4 insertions, 1 deletions
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