Better error reporting for LevelDB backend