commit | f1618bc2ee88daee40857177ab67b0aab2ab8e31 | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Fri Dec 06 20:58:04 2013 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Fri Dec 06 20:58:04 2013 +0800 |
tree | d79c4e544e83441f20efc60acc73a0a343c31f63 | |
parent | 73a6dba6c2affd02ccc05c89626485f1aba8b5c8 [diff] [blame] |
python: add error message to CsError and modify all tests to use CsError exception
diff --git a/bindings/python/test_mips.py b/bindings/python/test_mips.py index 1fba592..5603f34 100755 --- a/bindings/python/test_mips.py +++ b/bindings/python/test_mips.py
@@ -61,8 +61,8 @@ print print "0x%x:\n" %(insn.address + insn.size) - except: - print("ERROR: Arch or mode unsupported!") + except CsError as e: + print("ERROR: %s" %e) test_class()