Better error handling in case of unsupported driver
authorIdo Barnea <[email protected]>
Wed, 13 Jul 2016 12:42:52 +0000 (15:42 +0300)
committerIdo Barnea <[email protected]>
Wed, 13 Jul 2016 12:42:52 +0000 (15:42 +0300)
src/main_dpdk.cpp

index 099ebb3..17b9f25 100644 (file)
@@ -3386,7 +3386,9 @@ int  CGlobalTRex::ixgbe_prob_init(void){
 
 
     if ( !CTRexExtendedDriverDb::Ins()->is_driver_exists(dev_info.driver_name) ){
-        printf(" ERROR driver name  %s is not supported \n",dev_info.driver_name);
+        printf(" Error: driver %s is not supported. Please consult the documentation for a list of supported drivers\n"
+               ,dev_info.driver_name);
+        exit(1);
     }
 
     int i;