ldb:ldb_tdb.c - improve the error outputs