Completion.Includes.push_back(std::move(Include));
} else
log("Failed to generate include insertion edits for adding header "
- "(FileURI='{0}', IncludeHeader='{1}') into {2}",
- C.IndexResult->CanonicalDeclaration.FileURI, Inc, FileName);
+ "(FileURI='{0}', IncludeHeader='{1}') into {2}: {3}",
+ C.IndexResult->CanonicalDeclaration.FileURI, Inc, FileName,
+ ToInclude.takeError());
}
// Prefer includes that do not need edits (i.e. already exist).
std::stable_partition(Completion.Includes.begin(),