Merge pull request #9689 from ClickHouse/better_logging_on_part_remove

More verbose error text
This commit is contained in:
alesapin 2020-03-17 12:13:42 +03:00 committed by GitHub
commit 5a152f8d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -714,7 +714,7 @@ void IMergeTreeDataPart::remove() const
}
catch (...)
{
LOG_ERROR(storage.log, "Cannot remove directory " << fullPath(disk, to_) << ". Check owner and access rights.");
LOG_ERROR(storage.log, "Cannot recursively remove directory " << fullPath(disk, to_) << ". Exception: " << getCurrentExceptionMessage(false));
throw;
}
}