(#2144) - better errors for leveldb

need to think of a test