Skip to content
Snippets Groups Projects
Commit 16298645 authored by Matthias Diener's avatar Matthias Diener
Browse files

better error message

parent 9083858f
No related branches found
No related tags found
No related merge requests found
......@@ -288,7 +288,7 @@ class PytatoArrayContext(ArrayContext):
if isinstance(array, cla.Array):
return array.with_queue(None)
if not isinstance(array, pt.Array):
raise TypeError("PytatoArrayContext.freeze invoked with non-pt arrays")
raise TypeError(f"PytatoArrayContext.freeze invoked with non-pt array of type '{type(array)}'")
prg = pt.generate_loopy(array, cl_device=self.queue.device)
evt, (cl_array,) = prg(self.queue)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment