github.com/loafoe/cli@v7.1.0+incompatible/command/translatableerror/file_not_found_error.go (about) 1 package translatableerror 2 3 // FileNotFoundError is returned when a local plugin binary is not found during 4 // installation. 5 type FileNotFoundError struct { 6 Path string 7 } 8 9 func (FileNotFoundError) Error() string { 10 return "File not found locally, make sure the file exists at given path {{.FilePath}}" 11 } 12 13 func (e FileNotFoundError) Translate(translate func(string, ...interface{}) string) string { 14 return translate(e.Error(), map[string]interface{}{ 15 "FilePath": e.Path, 16 }) 17 }