update wording on ssl cert error

This commit is contained in:
clint shryock 2015-11-12 14:25:41 -06:00
parent 1b2e068b19
commit 5cafe740ff
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ func expandListeners(configured []interface{}) ([]*elb.Listener, error) {
if valid {
listeners = append(listeners, l)
} else {
return nil, fmt.Errorf("[ERR] Invalid ssl_certificate_id / Protocol combination. Must be either HTTPS or SSL")
return nil, fmt.Errorf("[ERR] ELB Listener: ssl_certificate_id may be set only when protocol is 'https' or 'ssl'")
}
}

View File

@ -339,7 +339,7 @@ func TestExpandListeners_invalid(t *testing.T) {
_, err := expandListeners(expanded)
if err != nil {
// Check the error we got
if !strings.Contains(err.Error(), "Protocol combination") {
if !strings.Contains(err.Error(), "ssl_certificate_id may be set only when protocol") {
t.Fatalf("Got error in TestExpandListeners_invalid, but not what we expected: %s", err)
}
}