Corrected error messages to use the public (string) identifier rather
than the private (primary key, whatever) identifier.