From d3c827976316cf756e0adbf532eb8f1f22f38cc3 Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni <kaushikcfd@gmail.com> Date: Tue, 29 Jun 2021 06:15:48 -0500 Subject: [PATCH] better error message for non-array container ret. value Co-authored-by: Andreas Kloeckner <inform@tiker.net> --- arraycontext/impl/pytato/compile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arraycontext/impl/pytato/compile.py b/arraycontext/impl/pytato/compile.py index 9fcd966..10d133f 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) -- GitLab