diff --git a/uapi/appapi.py b/uapi/appapi.py index b792be2..69d6dee 100644 --- a/uapi/appapi.py +++ b/uapi/appapi.py @@ -141,7 +141,13 @@ class UAPI: ns = self.env.copy() ns.update(params) te = self.env.tmpl_engine - return await te.renders(tmplstr, ns) + try: + ret = await te.renders(tmplstr, ns) + return ret + except Exception as e: + e = Exception(f'{e}:{tmplstr=}, {ns=}') + exception(f'{e}') + raise e async def get_uapis(self, sor, upappid, apiname, callerid, params={}): self.env.update(params)