Better error messages for sdbm code