Better error reporting in llvm-sync
Report an error if trying to sync a repo that does not exist
Change-Id: Ifa2c27daa6a2c51a79bfdb57069478e07ff293d6
diff --git a/helpers/llvm-sync b/helpers/llvm-sync
index bd46404..d3e1434 100755
--- a/helpers/llvm-sync
+++ b/helpers/llvm-sync
@@ -7,7 +7,10 @@
. llvm-common
function repo_sync () {
- if [ ! -d $2 ]; then return; fi
+ if [ ! -d $2 ]; then
+ echo " + Not updating $1 (couldn't find source directory)"
+ return;
+ fi
echo " + Updating $1"
cd $2
branch=`get_branch`