fix: better 404 error message with full URL
This commit is contained in:
@@ -121,7 +121,7 @@ async function loadDoc(name) {
|
||||
el.innerHTML = '<p>Loading...</p>';
|
||||
try {
|
||||
const resp = await fetch('/doc-wasm/modules/' + name + '.md');
|
||||
if (!resp.ok) throw new Error('HTTP ' + resp.status);
|
||||
if (!resp.ok) throw new Error('HTTP ' + resp.status + ' fetching /doc-wasm/modules/' + name + '.md');
|
||||
const md = await resp.text();
|
||||
if (!wasm_exports) throw new Error('WASM not loaded');
|
||||
el.innerHTML = md2html(md);
|
||||
|
||||
Reference in New Issue
Block a user