diff --git a/pyscriptjs/src/pyexec.ts b/pyscriptjs/src/pyexec.ts index 980a2bf7..558b0074 100644 --- a/pyscriptjs/src/pyexec.ts +++ b/pyscriptjs/src/pyexec.ts @@ -16,7 +16,7 @@ export async function pyExec(interpreter: Interpreter, pysrc: string, outElem: H throw new UserError( ErrorCode.TOP_LEVEL_AWAIT, 'The use of top-level "await", "async for", and ' + - '"async with" is deprecated.' + + '"async with" has been removed.' + '\nPlease write a coroutine containing ' + 'your code and schedule it using asyncio.ensure_future() or similar.' + '\nSee https://docs.pyscript.net/latest/guides/asyncio.html for more information.',