By default DataMapper key violations are notoriously difficult to debug. Here is how you make your life easier by forcing it to throw explicit errors.