diff --git a/src/Controller/DrushInfoController.php b/src/Controller/DrushInfoController.php
index 43f5b7b..23d400f 100644
--- a/src/Controller/DrushInfoController.php
+++ b/src/Controller/DrushInfoController.php
@@ -18,6 +18,7 @@ class DrushInfoController {
 
     $moduleHandler = \Drupal::moduleHandler();
     $modules = $moduleHandler->getModuleList();
+    $counter = FALSE;
 
     foreach ($modules as $module => $data) {
       $module_path = drupal_get_path('module', $module);
@@ -26,6 +27,7 @@ class DrushInfoController {
       if (module_load_include('inc', $module, $module . '.drush')
         || module_load_include('inc', $module, 'drush/' . $module . '.drush')
       ) {
+        $counter = TRUE;
         $rows = [];
 
         $commands = [];
@@ -107,6 +109,10 @@ class DrushInfoController {
         ];
       }
     }
+    // Display error message in case of no module found with drush command.
+    if (!$counter) {
+      drupal_set_message(t('No module found with its drush commands.'), 'error');
+    }
 
     return $build;
   }
