From a508c1ec0f42b01303003554a50bde46682ccdae Mon Sep 17 00:00:00 2001 From: skep Date: Wed, 10 Apr 2024 10:38:33 +0000 Subject: [PATCH] chore: more descriptive error message for python/codegen function-not-found warnings --- swig/python/codegen/codegen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swig/python/codegen/codegen.py b/swig/python/codegen/codegen.py index f2ba4fd70..a245399a3 100644 --- a/swig/python/codegen/codegen.py +++ b/swig/python/codegen/codegen.py @@ -1271,7 +1271,7 @@ def _Call(self, t): self.write(f"static_cast<{t.func.id}>") else: if (t.func.id not in funcs): - self.RaiseWarning(t, "Function call is not a defined FLAME GPU device function or a supported python built in.") + self.RaiseWarning(t, f"Function call to '{t.func.id}' is not a defined FLAME GPU device function or a supported python built in.") # dispatch even if warning raised self.dispatch(t.func) elif isinstance(t.func, ast.Lambda):