File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,10 @@ function _pyjl_serialize(self::PyPtr, ::PyPtr)
205
205
b = take! (io)
206
206
return PyBytes_FromStringAndSize (pointer (b), sizeof (b))
207
207
catch e
208
- PyErr_SetString (POINTERS. PyExc_Exception, " error serializing this value" )
208
+ PyErr_SetString (
209
+ POINTERS. PyExc_Exception,
210
+ " error serializing this value. Caught exception $e "
211
+ )
209
212
return PyNULL
210
213
end
211
214
end
@@ -220,7 +223,10 @@ function _pyjl_deserialize(t::PyPtr, v::PyPtr)
220
223
x = deserialize (io)
221
224
return PyJuliaValue_New (t, x)
222
225
catch e
223
- PyErr_SetString (POINTERS. PyExc_Exception, " error deserializing this value" )
226
+ PyErr_SetString (
227
+ POINTERS. PyExc_Exception,
228
+ " error deserializing this value. Caught exception $e "
229
+ )
224
230
return PyNULL
225
231
end
226
232
end
You can’t perform that action at this time.
0 commit comments