github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/actor/actionerror/space_already_exists_error.go (about) 1 package actionerror 2 3 import "fmt" 4 5 // SpaceAlreadyExistsError is returned when a space already exists 6 type SpaceAlreadyExistsError struct { 7 Space string 8 Err error 9 } 10 11 func (e SpaceAlreadyExistsError) Error() string { 12 if e.Err != nil { 13 return e.Err.Error() 14 } 15 return fmt.Sprintf("Space '%s' already exists.", e.Space) 16 }