diff options
| author | Magnus Ahltorp <map@kth.se> | 2017-03-17 01:09:01 +0100 |
|---|---|---|
| committer | Magnus Ahltorp <map@kth.se> | 2017-03-17 01:25:18 +0100 |
| commit | 28e24e48dcd6203f2c24e28f15aec8167697c9c0 (patch) | |
| tree | 95a9a435e011e0d6bc55494cb42fd3cb55dae950 /c_src/permdb.c | |
| parent | d62f8189a2eb7be50353eef85073b8af6a3e8f79 (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. |
