From e66a2702dfec238f0ebd0c5640f3e4cb07ba9ac1 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Tue, 28 Feb 2023 07:52:40 +0100 Subject: [PATCH] Fix error message (#1225) --- pyscriptjs/src/pyexec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.',