gjarkko/Track-o-Matic — Issue #25: Non-user friendly error message while trying to add existing ISO code to Countries
Author: gkrista
Created: 2012-01-02 11:25:25+00:00
State: open
Labels: Back end, Usability

Actual:
Unable to execute INSERT statement [INSERT INTO `country` (`COUNTRYID`, `ISOCODE`, `COUNTRYNAME`) VALUES (:p0, :p1, :p2)] [wrapped: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'BB' for key 'isocode']

Expected:
You are trying to add ISO code "foo", which is already in the list/system/. Please modify the entry.
Or something similar.