Fix an error message when loading local modules failed (#1394)

* Fix an error message when loading local modules failed

* Fix an error message when loading local modules failed
This commit is contained in:
woxtu
2023-05-05 21:47:35 +09:00
committed by GitHub
parent 5086c23d47
commit 213ced0c7f
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ export async function robustFetch(url: string, options?: RequestInit): Promise<R
`'${error.message}'. Are your filename and path correct?`;
} else {
errMsg = `PyScript: Access to local files
(using "Paths:" in &lt;py-config&gt;)
(using [[fetch]] configurations in &lt;py-config&gt;)
is not available when directly opening a HTML file;
you must use a webserver to serve the additional files.
See <a style="text-decoration: underline;" href="https://github.com/pyscript/pyscript/issues/257#issuecomment-1119595062">this reference</a>