Skip to content

Commit 3818844

Browse files
Correct error message reported for null argument to DPCTLDevice_GetPlatform
1 parent febbca4 commit 3818844

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libsyclinterface/source/dpctl_sycl_platform_interface.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ DPCTLPlatform_GetDefaultContext(__dpctl_keep const DPCTLSyclPlatformRef PRef)
213213
return wrap(new context(default_ctx));
214214
}
215215
else {
216-
error_handler("Driver version cannot be looked up for a NULL platform.",
217-
__FILE__, __func__, __LINE__);
216+
error_handler(
217+
"Default platform cannot be obtained up for a NULL platform.",
218+
__FILE__, __func__, __LINE__);
218219
return nullptr;
219220
}
220221
}

0 commit comments

Comments
 (0)