Skip to content

Commit 50ee9ef

Browse files
committed
More verbose error reporting when importing numpy module
1 parent cc895a2 commit 50ee9ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/npyffi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn get_numpy_api(_py: Python, module: &str, capsule: &str) -> *const *const c_vo
1515
let numpy = ffi::PyImport_ImportModule(module.as_ptr());
1616
assert!(!numpy.is_null(), "Failed to import numpy module");
1717
let capsule = ffi::PyObject_GetAttrString(numpy as _, capsule.as_ptr());
18-
assert!(!capsule.is_null(), "Failed to import numpy module");
18+
assert!(!capsule.is_null(), "Failed to get numpy capsule API");
1919
ffi::PyCapsule_GetPointer(capsule, null_mut()) as _
2020
}
2121
}

0 commit comments

Comments
 (0)