Skip to content

Commit 3a3d7e2

Browse files
Merge pull request llvm#11906 from adrian-prantl/channel-error
[LLDB] Add clarification to error message (NFC)
2 parents 45b2f1b + 3fed6e5 commit 3a3d7e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,9 @@ static const char *getImportFailureString(swift::serialization::Status status) {
11831183
case swift::serialization::Status::SDKMismatch:
11841184
return "The module file was built with a different SDK version.";
11851185
case swift::serialization::Status::ChannelIncompatible:
1186-
return "The distribution channel doesn't match.";
1186+
return "The distribution channel doesn't match."
1187+
" This version of LLDB is most likely from a different toolchain"
1188+
" than the Swift compiler that built this module.";
11871189
}
11881190
}
11891191

0 commit comments

Comments
 (0)