arrange/errors.go

22 lines
345 B
Go
Raw Permalink Normal View History

2016-05-17 23:03:37 -07:00
package arrange
import "fmt"
2016-05-19 21:29:17 -07:00
// NotMedia is for unkown filetypes.
2016-05-17 23:03:37 -07:00
type NotMedia struct {
Path string
}
func (nm NotMedia) Error() string {
return fmt.Sprintf("not media: %q", nm.Path)
}
2016-05-19 21:29:17 -07:00
// Dup indicates a file with duplicate content.
2016-05-17 23:03:37 -07:00
type Dup struct {
Path string
}
func (d Dup) Error() string {
return fmt.Sprintf("dup: %q", d.Path)
}