Fix error message in case object.di is not found.