From a027d50aeef432f70a0901a4b10c60a0265ffea4 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 2 May 2018 09:54:18 +0200 Subject: python wrapper: print the return code on failure --- teukolsky_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teukolsky_data.py b/teukolsky_data.py index f6c78c5..2458bf7 100644 --- a/teukolsky_data.py +++ b/teukolsky_data.py @@ -111,7 +111,7 @@ class TeukolskyData(object): ret = eval_func(self._tdctx, out.shape[0], c_r, c_theta, c_diff_order, c_out, ctypes.c_long(r.shape[0])) if ret < 0: - raise RuntimeError('Error evaluating the variable') + raise RuntimeError('Error evaluating the variable: %d' % ret) out.shape = (theta.shape[0], r.shape[0]) return out -- cgit v1.2.3