 			log.error i, 'E9', "location's image has been doubled" if location.image? # error 9
 			
 			[_, path, path2] = imageDescr
-			log.error i, 'E10', "image paths are not equal: '#{path}', '#{path2}'" if path isnt path2 # error 10
+			if path isnt path2
+				log.error i, 'E10', "image paths are not equal: '#{path}', '#{path2}'" # error 10
 			
 			location.image = path
 		

	for loc in res.locations
		for target of loc.actions
			continue if target of labels
			log.error 'actions', 'E1', "action's (#{loc.actions[target]}) target (#{target}) does not exist" # error 1
	
#	labels = {}
#	for loc in res.locations
#		if loc.label of labels
#			log.error 'locations', 'N/a', "both '#{labels[loc.label]}' and '#{loc}' have same label <#{loc.label}>" #error 7
#		labels[location.label] = location


class Area

	log.setFilename dir
	
	unless t = dir.match /\/([^\/]+)\s-\s([^\/]+)\/?$/
		log.error 'dirname', 'E4', "wrong path <#{dir}>, folder must have name like 'Area name - label'" # error 4
	[_, name, label] = t
	label = parentLabel + '-' + label unless parentLabel is ''
	
