mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 02:14:13 +08:00
mdbx-tools: minor fix error messages.
Change-Id: Id2efb3db70b5df49e84bc9a8bb47645afe0eb187
This commit is contained in:
parent
f3c078fcbf
commit
bedd13d411
@ -678,7 +678,7 @@ static int process_db(MDBX_dbi dbi_handle, char *dbi_name, visitor *handler,
|
||||
if (!dbi_name ||
|
||||
rc !=
|
||||
MDBX_INCOMPATIBLE) /* LY: mainDB's record is not a user's DB. */ {
|
||||
error("mdbx_open '%s' failed, error %d %s\n",
|
||||
error("mdbx_dbi_open '%s' failed, error %d %s\n",
|
||||
dbi_name ? dbi_name : "main", rc, mdbx_strerror(rc));
|
||||
}
|
||||
return rc;
|
||||
|
@ -167,7 +167,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
rc = mdbx_dbi_open(txn, subname, MDBX_DB_ACCEDE, &dbi);
|
||||
if (unlikely(rc != MDBX_SUCCESS)) {
|
||||
error("mdbx_open", rc);
|
||||
error("mdbx_dbi_open", rc);
|
||||
goto txn_abort;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user