Added failed modules to tree and updated error message to clarify cause of failed modules