code.cloudfoundry.org/cli@v7.1.0+incompatible/actor/actionerror/security_group_json_syntax_error.go (about)

     1  package actionerror
     2  
     3  import "fmt"
     4  
     5  type SecurityGroupJsonSyntaxError struct {
     6  	Path string
     7  }
     8  
     9  func (e SecurityGroupJsonSyntaxError) Error() string {
    10  	return fmt.Sprintf(`Incorrect json format: %s
    11  
    12  Valid json file example:
    13  [
    14    {
    15      "protocol": "tcp",
    16      "destination": "10.244.1.18",
    17      "ports": "3306"
    18    }
    19  ]
    20  `, e.Path)
    21  }