-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
30 lines (23 loc) 路 785 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package kong
import (
"errors"
"fmt"
"os"
)
// ErrConfigMissing is returned when the configuration file does not exist.
var ErrConfigMissing = errors.New("configuration missing")
// ErrDataMissing is returned if the data file created by the daemon does not
// exist.
var ErrDataMissing = errors.New("data file missing")
// ErrNoActiveSprint is returned when there is no active sprint in a list of
// sprints.
var ErrNoActiveSprint = errors.New("no active sprint")
// ErrCreateSprint is used to wrap the Jira API response returned on sprint
// creation failure.
type ErrCreateSprint string
func (e ErrCreateSprint) Error() string {
return string(e)
}
func printDaemonWarning() {
fmt.Fprintln(os.Stderr, "Warning: daemon not running, check logs. Performing slow request.")
}