diff --git a/arraycontext/impl/pytato/compile.py b/arraycontext/impl/pytato/compile.py index 9fcd966158532dfcba4feb437c484d8f399978ee..10d133fbc85133dc5250c2accfb3b5e4d7b3436a 100644 --- a/arraycontext/impl/pytato/compile.py +++ b/arraycontext/impl/pytato/compile.py @@ -200,7 +200,8 @@ class LazilyCompilingFunctionCaller: # returned type is a scalar. Not sure if it's worth it though. raise NotImplementedError( f"Function '{self.f.__name__}' to be compiled " - f"did not return an array container, but '{outputs}' instead.") + "did not return an array container, but an instance of " + f"'{outputs.__class__}' instead.") def _as_dict_of_named_arrays(keys, ary): name = "_pt_out_" + "_".join(str(key)