Skip to content

Commit 3f3f25a

Browse files
Improved exception message when SyclDevice could not created from invalid filter string
1 parent 5b3a819 commit 3f3f25a

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)