aboutsummaryrefslogtreecommitdiff
path: root/errors.go
blob: b0d02478991ac8c61c377a95160d56b11f799c64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

import (
	"errors"
	"strings"
)

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

func (e *err_local_recipients_not_found_t) Error() string {
	return "Local recipients not found: " + strings.Join([]string(*e), ", ")
}