Better error reporting for DBRef failures