Replace bad file type error with constant
This commit is contained in:
parent
99262cf76c
commit
6c84cd1fbb
2 changed files with 7 additions and 1 deletions
|
@ -39,6 +39,12 @@ const (
|
|||
ModeMarkdown = "Markdown"
|
||||
)
|
||||
|
||||
// Library errors
|
||||
const (
|
||||
// ErrBadFileType happens when you pass an unknown type
|
||||
ErrBadFileType = "bad file type"
|
||||
)
|
||||
|
||||
// Chattable is any config type that can be sent.
|
||||
type Chattable interface {
|
||||
values() (url.Values, error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue