Print role name in the error message

This commit is contained in:
vishalnayak 2016-06-21 17:53:33 -04:00
parent 7e8ab05528
commit e97f81ecaa

View file

@ -241,7 +241,7 @@ func (b *backend) pathLoginUpdate(
return nil, err
}
if roleEntry == nil {
return logical.ErrorResponse("role entry not found"), nil
return logical.ErrorResponse("entry for role '%s' not found", roleName), nil
}
// Verify that the AMI ID of the instance trying to login matches the