diff options
author | Magnus Ahltorp <map@kth.se> | 2017-03-17 01:09:01 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-06-21 17:29:52 +0200 |
commit | 0d7c7bb15f449656e35801dac5ba410f16261c6f (patch) | |
tree | 54db24f975d429b88b855d7292d862957a956de0 /c_src/permdb.c | |
parent | 39d556cff6949ff0d77f92960ea76ceaef63817c (diff) |
Report errors as exceptions when called from python.
Diffstat (limited to 'c_src/permdb.c')
-rw-r--r-- | c_src/permdb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/c_src/permdb.c b/c_src/permdb.c index 6117ff6..242dacc 100644 --- a/c_src/permdb.c +++ b/c_src/permdb.c @@ -624,6 +624,13 @@ permdb_free(permdb_object *state) free(state); } +char * +get_permdb_error(permdb_object *state) +{ + return state->error; +} + + /* * Returns the two bits of KEY that are used for LEVEL, for a q=2 * tree. |