diff --git a/src/Storages/MergeTree/MergeTreeData.cpp b/src/Storages/MergeTree/MergeTreeData.cpp index 197620b1310..fac290abe9b 100644 --- a/src/Storages/MergeTree/MergeTreeData.cpp +++ b/src/Storages/MergeTree/MergeTreeData.cpp @@ -6054,7 +6054,7 @@ MergeTreeData::MutableDataPartPtr MergeTreeData::loadPartRestoredFromBackup(cons if (!retryable || (try_no + 1 == loading_parts_max_tries)) { if (Exception * e = exception_cast(error)) - e->addMessage("while restoring part {} of table {}", part->name, getStorageID()); + e->addMessage("while restoring part {} of table {}", part_name, getStorageID()); std::rethrow_exception(error); }