From 495cec60d6793e46f73f35ffa89d8b817e65f2eb Mon Sep 17 00:00:00 2001
From: fly <merspieler@airmail.cc>
Date: Wed, 15 Jan 2020 15:15:30 +0000
Subject: [PATCH] Fix duplicated warning message and print path

Signed-off-by: fly <merspieler@airmail.cc>
---
 build | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/build b/build
index c2bdd53..6ff43ef 100755
--- a/build
+++ b/build
@@ -98,8 +98,8 @@ def get_bounds(file_path):
 				ret.append(coords)
 		return ret
 	except:
-		print("WARNING: Getting bounds failed")
-		return []
+		print("WARNING: Getting bounds from '" + file_path + "' failed")
+		sys.exit(1)
 
 
 def run_build(west, south, east, north, log_done=False, start_w=None, start_s=None, chunk_size=1):
@@ -168,9 +168,6 @@ start_time = time.time()
 try:
 	if build_all:
 		bounds = get_bounds("projects/" + project + "/settings")
-		if bounds == []:
-			print("Unable to read project settings")
-			sys.exit(1)
 		run_command("rm -f projects/" + project + "/osm2city-exceptions.log")
 		run_build(bounds[0]["west"], bounds[0]["south"], bounds[0]["east"], bounds[0]["north"], log_done=True, chunk_size=chunk_size)
 	else: