Skip to content

Commit 5e65268

Browse files
Merge pull request #10448 from adrian-prantl/145099577
[lldb] Improve the wording of the error message if no type info is found
2 parents 886d8cc + c5a0fe8 commit 5e65268

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/ReflectionContext.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,10 @@ class TargetReflectionContext : public ReflectionContextInterface {
204204
auto type_info = m_reflection_ctx.getTypeInfo(&type_ref, provider);
205205
if (!type_info) {
206206
std::stringstream ss;
207+
ss << "Could not find type info for ";
207208
type_ref.dump(ss);
208-
return llvm::createStringError("Could not get type info for typeref: " +
209-
ss.str());
209+
ss << " in reflection metadata";
210+
return llvm::createStringError(ss.str());
210211
}
211212

212213
if (log && log->GetVerbose()) {

0 commit comments

Comments
 (0)