commit e819d92e6b08b1b93c4d96b6d12d4dcb630d5c86 Author: Bingyu Shen Date: Sat Sep 19 19:14:15 2020 -0700 Improve the log message for dav_fs_copymove_file * modules/dav/fs/repo.c: Add filepath in the log messages of dav_fs_copymove_file to differentiate src and dst filepath location diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c index 1f7379a..957488c 100644 --- a/modules/dav/fs/repos.c +++ b/modules/dav/fs/repos.c @@ -364,7 +364,8 @@ static dav_error * dav_fs_copymove_file( APR_OS_DEFAULT, p)) != APR_SUCCESS) { /* ### use something besides 500? */ return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0, status, - "Could not open file for reading"); + apr_psprintf(p, "Could not open file" + "for reading: %s", src)); } /* ### do we need to deal with the umask? */ @@ -374,7 +375,8 @@ static dav_error * dav_fs_copymove_file( apr_file_close(inf); return dav_new_error(p, MAP_IO2HTTP(status), 0, status, - "Could not open file for writing"); + apr_psprintf(p, "Could not open file" + "for writing: %s", dst)); } while (1) {