Make json error message more specific