diff --git a/wasm/test_page/bergamot.html b/wasm/test_page/bergamot.html index d52b8e4..717a09e 100644 --- a/wasm/test_page/bergamot.html +++ b/wasm/test_page/bergamot.html @@ -65,7 +65,7 @@ En consecuencia, durante el año 2011 se introdujeron 180 proyectos de ley que r const downloadAsArrayBuffer = async(url) => { const response = await fetch(url); if (!response.ok) { - throw Error(`HTTP ${response.status} - ${response.statusText}`); + throw Error(`Downloading ${url} failed: HTTP ${response.status} - ${response.statusText}`); } return response.arrayBuffer(); } @@ -156,7 +156,7 @@ quiet-translation: true console.debug("Creating TranslationModel with config:", modelConfigWithoutModelAndShortList); translationModel = new Module.TranslationModel(modelConfigWithoutModelAndShortList, alignedModelMemory, alignedShortlistMemory); } catch (error) { - console.error(error); + log(error); } }