Improve log message for failed to generate files.
This commit is contained in:
parent
f53cf540b7
commit
a776ac7566
|
@ -3967,9 +3967,14 @@ void FileManager::on_error_impl(FileNodePtr node, Query::Type type, bool was_act
|
||||||
status = Global::request_aborted_error();
|
status = Global::request_aborted_error();
|
||||||
} else {
|
} else {
|
||||||
if (status.code() != -1) {
|
if (status.code() != -1) {
|
||||||
|
if (type == Query::Type::Generate && node->generate_ != nullptr) {
|
||||||
|
LOG(WARNING) << "Failed to generate file " << node->main_file_id_ << " with " << *node->generate_ << ": "
|
||||||
|
<< status;
|
||||||
|
} else {
|
||||||
LOG(WARNING) << "Failed to " << type << " file " << node->main_file_id_ << " of type "
|
LOG(WARNING) << "Failed to " << type << " file " << node->main_file_id_ << " of type "
|
||||||
<< FileView(node).get_type() << ": " << status;
|
<< FileView(node).get_type() << ": " << status;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (status.code() == 0) {
|
if (status.code() == 0) {
|
||||||
// Remove partial locations
|
// Remove partial locations
|
||||||
if (node->local_.type() == LocalFileLocation::Type::Partial &&
|
if (node->local_.type() == LocalFileLocation::Type::Partial &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user