arrange/errors.go

20 lines
260 B
Go

package arrange
import "fmt"
type NotMedia struct {
Path string
}
func (nm NotMedia) Error() string {
return fmt.Sprintf("not media: %q", nm.Path)
}
type Dup struct {
Path string
}
func (d Dup) Error() string {
return fmt.Sprintf("dup: %q", d.Path)
}