From 69e80824038f1c08deb92e92e9f536663a26a453 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Fri, 9 Sep 2016 10:32:42 -0400 Subject: [PATCH] nitc iOS: report rmdir errors and quit MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- src/platform/ios.nit | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/platform/ios.nit b/src/platform/ios.nit index 76fefea..3178b49 100644 --- a/src/platform/ios.nit +++ b/src/platform/ios.nit @@ -175,7 +175,14 @@ private class IOSToolchain toolcontext.exec_and_check(args, "iOS project error") # Move compiled app to destination - if outfile.file_exists then outfile.rmdir + if outfile.file_exists then + var error = outfile.rmdir + if error != null then + print_error error + exit 1 + end + end + args = ["mv", "{ios_project_root}/build/Debug-iphonesimulator/{project_name}.app", outfile] toolcontext.exec_and_check(args, "iOS project error") end -- 1.7.9.5