diff --git a/arraycontext/impl/pytato.py b/arraycontext/impl/pytato.py index b6bf800bcf3016c6090952dbd0f8e3e37c8a7dac..ebc69df538a31c4ec50ea135a0064dd7f993a8a6 100644 --- a/arraycontext/impl/pytato.py +++ b/arraycontext/impl/pytato.py @@ -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)