Skip to content

Commit 8655e98

Browse files
Merge pull request #893 from IntelPython/gh-891-better-error-msg
2 parents 5b3a819 + 3f3f25a commit 8655e98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dpctl/_sycl_device.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ cdef class SyclDevice(_SyclDevice):
293293
ret = self._init_from_selector(DSRef)
294294
if ret == -1:
295295
raise SyclDeviceCreationError(
296-
"Could not create a SyclDevice with the selector string"
296+
"Could not create a SyclDevice with the selector string "
297+
"'{selector_string}'".format(selector_string=arg)
297298
)
298299
elif isinstance(arg, _SyclDevice):
299300
ret = self._init_from__SyclDevice(arg)

0 commit comments

Comments
 (0)