github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/command/translatableerror/empty_config_error.go (about)

     1  package translatableerror
     2  
     3  type EmptyConfigError struct {
     4  	FilePath string
     5  }
     6  
     7  func (EmptyConfigError) Error() string {
     8  	return "Warning: Error read/writing config: unexpected end of JSON input for {{.FilePath}}"
     9  }
    10  
    11  func (e EmptyConfigError) Translate(translate func(string, ...interface{}) string) string {
    12  	return translate(e.Error(), map[string]interface{}{
    13  		"FilePath": e.FilePath,
    14  	})
    15  }