github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/cf/errors/empty_dir_error.go (about) 1 package errors 2 3 import ( 4 . "github.com/liamawhite/cli-with-i18n/cf/i18n" 5 ) 6 7 type EmptyDirError struct { 8 dir string 9 } 10 11 func NewEmptyDirError(dir string) error { 12 return &EmptyDirError{dir: dir} 13 } 14 15 func (err *EmptyDirError) Error() string { 16 return err.dir + T(" is empty") 17 }