Improve error output, if object is missing