Fix error message (#1225)

This commit is contained in:
Hood Chatham
2023-02-28 07:52:40 +01:00
committed by GitHub
parent c57d4a7054
commit e66a2702df

View File

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