16 lines
235 B
Go
Raw Normal View History

2023-10-20 13:29:40 +00:00
package errors
import "fmt"
type InvalidDirectory struct {
Path string
}
func (err *InvalidDirectory) Error() string {
if err.Path == "" {
return "Invalid directory"
}
return fmt.Sprintf("Invalid directory '%s'", err.Path)
}