diff options
author | Magnus Ahltorp <map@kth.se> | 2017-03-17 01:09:01 +0100 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2017-03-17 14:44:42 +0100 |
commit | 5eecd85c8e9e9b52527859917cba0b68608b8c33 (patch) | |
tree | a64d658f94e0b319917b96efa7234078bc4945ca /c_src/permdb.c | |
parent | e0c96d10cf319549dabda91a612393c115e3f82a (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. |