Execute batch and check for errors.

Abort if batch.execute returns errors.

Property definitions

nitc $ NeoModel :: do_batch
	# Execute `batch` and check for errors.
	#
	# Abort if `batch.execute` returns errors.
	private fun do_batch(batch: NeoBatch) do
		var errors = batch.execute
		if not errors.is_empty then
			print errors
			exit(1)
		end
	end
src/neo.nit:294,2--303,4