Better error message for invalid dObjects