github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/command/translatableerror/file_changed_error.go (about) 1 package translatableerror 2 3 type FileChangedError struct { 4 Filename string 5 } 6 7 func (e FileChangedError) Error() string { 8 return "Aborting push: File {{.Filename}} has been modified since the start of push. Validate the correct state of the file and try again." 9 } 10 11 func (e FileChangedError) Translate(translate func(string, ...interface{}) string) string { 12 return translate(e.Error(), map[string]interface{}{ 13 "Filename": e.Filename, 14 }) 15 }