summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--python/architecture.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index f4fd75ab..a2022808 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,9 @@ Thumbs.db
*.pkl
*.a
*.so
+*.so.1
+*.so.1.0
+*.so.1.0.0
*.dylib
libbinaryninja*
binaryninjacore.lib
diff --git a/python/architecture.py b/python/architecture.py
index 0177141f..c2f28a86 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -2412,7 +2412,7 @@ class CoreArchitecture(Architecture):
if not core.BNAssemble(self.handle, code, addr, result.handle, errors):
error_str = errors.value
core.BNFreeString(ctypes.cast(errors, ctypes.POINTER(ctypes.c_byte)))
- raise ValueError("Could not assemble: %s" % errors.value)
+ raise ValueError("Could not assemble: %s" % error_str)
if isinstance(str(result), bytes):
return str(result)
else: