textmagic / textmagic-rest-ruby

MIT License
1 stars 4 forks source link

Include the phone number in the field error when creating a contact with an existing number. #33

Closed matthewcummings closed 9 years ago

matthewcummings commented 9 years ago

When you attempt to create a new contact with the same phone number as an existing contact, you receive this error: fields: {"phone"=>["Phone number already exists in your contacts."]}

It would be more helpful if the error included the phone number e.g. fields: {"phone"=>["An account with the phone number 999123456 already exists in your contacts."]}

andreylarionov commented 9 years ago

Good point. Most likely it will be implemented later.