mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
show the errno in the debug when renaming the db fails
This commit is contained in:
parent
274da3ad0b
commit
38a5ff42e0
@ -30,6 +30,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "c_lib.h"
|
||||
#include "csync_private.h"
|
||||
@ -352,7 +353,7 @@ int csync_statedb_close(CSYNC *ctx, const char *statedb, int jwritten) {
|
||||
/* Move the tmp-db to the real one. */
|
||||
if (c_rename(statedb_tmp, statedb) < 0) {
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG,
|
||||
"Renaming tmp db to original db failed.");
|
||||
"Renaming tmp db to original db failed. (errno=%d)", errno);
|
||||
rc = -1;
|
||||
} else {
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user