diff options
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c b/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c index 5d8353ca51a..5c2595cc852 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c @@ -3538,9 +3538,9 @@ glusterd_copy_file(const char *source, const char *destination) ret = sys_write(dest_fd, buffer, read_len); if (ret != read_len) { gf_msg(this->name, GF_LOG_ERROR, 0, GD_MSG_FILE_OP_FAILED, - "Error writing in " - "file %s", - destination); + "Writing in " + "file %s failed with error %s", + destination, strerror(errno)); goto out; } } while (ret > 0); |