diff --git a/bin/phpstan-watch b/bin/phpstan-watch
index b424f7997df1ca30f38024c5ecff9cfd99951095..05bafdfc4072802799989dbe1cc64aa55f7116ea 100755
--- a/bin/phpstan-watch
+++ b/bin/phpstan-watch
@@ -8,6 +8,9 @@ fi
 
 if ! INOTIFYWAIT="$(which inotifywait)"; then
     echo "inotifywait introuvable !" >&2
+    if [[ -x /usr/lib/command-not-found ]]; then
+        /usr/lib/command-not-found inotifywait
+    fi
     exit 1
 fi
 
@@ -41,6 +44,11 @@ else
 fi
 
 TARGET="${1:-$HERE/src}"
+if [[ ! -e "$TARGET" ]]; then
+    echo "$TARGET n'existe pas !" >&2
+    exit 1
+fi
+
 DIR="$(mktemp -d)"
 FIFO="$DIR/fifo"
 mkfifo "$FIFO"