Skip to content

Commit 30d2d67

Browse files
committed
xx
1 parent 34afc6e commit 30d2d67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ macro_rules! pyimport { ($m: literal) => {
111111
match PyModule::import_bound(py, intern!(py, $m)) {
112112
Ok(m) => Ok(m.into()),
113113
Err(e) => {
114-
let v = e.value_bound(py).to_string();
114+
let mut v = e.value_bound(py).to_string();
115+
v.push_str(" (");
116+
v.push_str(stringify!($m));
117+
v.push_str(")");
115118
Err(ImportError(v))
116119
}
117120
})

0 commit comments

Comments
 (0)