ObjectManager: improve error messages

If building an object fails that is being built as the dependency for
another object, the name of the originally requested object is
reported in the error message.