aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/errors.go b/errors.go
index 1512b60..7ee429a 100644
--- a/errors.go
+++ b/errors.go
@@ -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), ", ")
}