Added nice errors in production. Should fix tests.