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):