We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38d84ff + de1c3e6 commit 371cdcbCopy full SHA for 371cdcb
stdlib/public/Concurrency/Task.cpp
@@ -1100,13 +1100,13 @@ static void swift_task_asyncMainDrainQueueImpl() {
1100
1101
HMODULE hModule = LoadLibraryW(L"dispatch.dll");
1102
if (hModule == NULL)
1103
- abort();
+ swift_reportError(0, "unable to load dispatch.dll");
1104
1105
pfndispatch_main =
1106
reinterpret_cast<void (FAR *)(void)>(GetProcAddress(hModule,
1107
"dispatch_main"));
1108
if (pfndispatch_main == NULL)
1109
+ swift_reportError(0, "unable to locate dispatch_main in dispatch.dll");
1110
1111
pfndispatch_main();
1112
exit(0);
0 commit comments