code: func checkResourcesOrPanic(res channelconfig.Resources) {
  	if err := checkResources(res); err != nil {
  		logger.Panicf("[channel %s] %s", res.ConfigtxValidator().ChainID(), err)
  	}
  }
docs: // checkResourcesOrPanic invokes checkResources and panics if an error is returned