summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-07-13 15:42:52 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-07-13 15:42:52 +0300
commit1b6c970a70c0fcf8b7599877ecb9ceb31e261fed (patch)
tree8c0ad492e11c8073ef3a4f70b508dd9e1a4d6a7f /src
parenta6bb20813c667c765e431687fc747f890af2fe83 (diff)
Better error handling in case of unsupported driver
Diffstat (limited to 'src')
-rw-r--r--src/main_dpdk.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp
index 099ebb3b..17b9f25f 100644
--- a/src/main_dpdk.cpp
+++ b/src/main_dpdk.cpp
@@ -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;