commit | b0470146defb891d7428b781b1539b9db65ee9fd | [log] [tgz] |
---|---|---|
author | Rich Lane <rich.lane@bigswitch.com> | Thu Oct 04 15:50:35 2012 -0700 |
committer | Rich Lane <rich.lane@bigswitch.com> | Thu Oct 04 17:28:05 2012 -0700 |
tree | 494f58297e022836fe6bc2679b383ff000dba3df | |
parent | 2a3bbb4f5d7e1cdd48704a53d8d8f22c5590abbc [diff] |
exit with a nice error message when missing message classes
diff --git a/oft b/oft index 439bae8..3e26d52 100755 --- a/oft +++ b/oft
@@ -124,6 +124,11 @@ # Running from source tree sys.path.insert(0, pydir) +try: + import oftest.message +except: + sys.exit("Missing OpenFlow message classes: please run \"make -C tools/munger\"") + import oftest.testutils import oftest.ofutils