Fixes phonegap/ios-deploy#80 --detect not showing non-zero exit code when no devices are detected.
diff --git a/ios-deploy.c b/ios-deploy.c
index c8d22cb..36a3eeb 100644
--- a/ios-deploy.c
+++ b/ios-deploy.c
@@ -1607,8 +1607,10 @@
     }
     else
     {
-      if (!debug)
+      if (!debug) {
           printf("[....] No more devices found.\n");
+          exit(exitcode_error);
+      }
       else
       {
           int mypid = getpid();