Skip to content

Commit 5f4e860

Browse files
committed
RuntimeError now prints the proper error message from arrayfire
1 parent 4f43aab commit 5f4e860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrayfire/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def safe_call(af_error):
7272
err_str = ct.c_char_p(0)
7373
err_len = ct.c_longlong(0)
7474
backend.get().af_get_last_error(ct.pointer(err_str), ct.pointer(err_len))
75-
raise RuntimeError(to_str(err_str), af_error)
75+
raise RuntimeError(to_str(err_str))
7676

7777
def get_version():
7878
"""

0 commit comments

Comments
 (0)