diff options
author | Anton Khirnov <anton@khirnov.net> | 2018-05-02 09:54:18 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2018-05-02 09:54:18 +0200 |
commit | a027d50aeef432f70a0901a4b10c60a0265ffea4 (patch) | |
tree | 985ade107866e0c95a8e0842118541a17fdfb473 | |
parent | f4a4130dfe8e48c89e464e0724a28ec2cd041438 (diff) |
python wrapper: print the return code on failure
-rw-r--r-- | teukolsky_data.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |