diff options
author | Runxi Yu <me@runxiyu.org> | 2025-01-13 12:25:46 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-01-13 12:25:46 +0800 |
commit | 8724c4b8935aceefdc3cea4e82dfba7d28a36cc6 (patch) | |
tree | 3712dbd26f69cea86f85f07751b49d172f6f833c /errors.go | |
parent | Close connections on QUIT (diff) | |
download | maild-8724c4b8935aceefdc3cea4e82dfba7d28a36cc6.tar.gz maild-8724c4b8935aceefdc3cea4e82dfba7d28a36cc6.tar.zst maild-8724c4b8935aceefdc3cea4e82dfba7d28a36cc6.zip |
Bug fixes
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -2,16 +2,13 @@ package main import ( "errors" - "fmt" "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") type err_local_recipients_not_found_t []string func (e *err_local_recipients_not_found_t) Error() string { - return fmt.Sprintf("Local recipients not found: %s", strings.Join([]string(*e), ", ")) + return "Local recipients not found: " + strings.Join([]string(*e), ", ") } |