wow, that's beautiful


On Aug 13, 2013, at 8:45 PM, Paul Hoadley <[email protected]> wrote:

> Hi Ted,
> 
> On 14/08/2013, at 10:03 AM, Theodore Petrosky <[email protected]> wrote:
> 
>> I added an index and unique constraint to my User. loginName column. 
>> 
>> I see in the logs that when I try to violate the uniqueness my d2w does the 
>> correct thing and complain however this is the error:
>> 
>> Could not save your changes: CustomMethodException
>> 
>> I do see in the logs:
>> 
>> ERROR: duplicate key value violates unique constraint "loginname_idx"
>> 
>> did I miss something in a rule to pass the better worded error message to 
>> the user?
> 
> Create Resources/English.lproj/ValidationTemplate.strings and add:
> 
> {
>       "UniqueConstraintException.loginname_idx" = "Please choose a different 
> username.";
> }
> 
> Does that work?
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/
> 
> 
> 


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to