mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Merge pull request #24489 from vdimir/log-fname-file-checker
Log file name on error in FileChecker ctor
This commit is contained in:
commit
97aef92df8
@ -21,7 +21,15 @@ namespace ErrorCodes
|
||||
FileChecker::FileChecker(DiskPtr disk_, const String & file_info_path_) : disk(std::move(disk_))
|
||||
{
|
||||
setPath(file_info_path_);
|
||||
load();
|
||||
try
|
||||
{
|
||||
load();
|
||||
}
|
||||
catch (DB::Exception & e)
|
||||
{
|
||||
e.addMessage("Error loading file {}", files_info_path);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
void FileChecker::setPath(const String & file_info_path_)
|
||||
|
Loading…
Reference in New Issue
Block a user