github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+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  }