Merge "envsetup: Show error when supplied dir isn\'t present with mmm" am: 475054a16a am: 3a6ad87039
am: 4c3d8573a3

* commit '4c3d8573a3cfb5012396cf009255dd95f1378c40':
  envsetup: Show error when supplied dir isn't present with mmm
diff --git a/envsetup.sh b/envsetup.sh
index 0bcccba..d133c8e 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -754,7 +754,12 @@
                 case $DIR in
                   showcommands | snod | dist | *=*) ARGS="$ARGS $DIR";;
                   GET-INSTALL-PATH) GET_INSTALL_PATH=$DIR;;
-                  *) echo "No Android.mk in $DIR."; return 1;;
+                  *) if [ -d $DIR ]; then
+                         echo "No Android.mk in $DIR.";
+                     else
+                         echo "Couldn't locate the directory $DIR";
+                     fi
+                     return 1;;
                 esac
             fi
         done