diff --git a/src/coreclr/hosts/corerun/wasm/libCorerun.js b/src/coreclr/hosts/corerun/wasm/libCorerun.js index 510e9039b0e372..4d0d4f80a275e8 100644 --- a/src/coreclr/hosts/corerun/wasm/libCorerun.js +++ b/src/coreclr/hosts/corerun/wasm/libCorerun.js @@ -196,7 +196,7 @@ function libCoreRunFactory() { } catch (e) { const errorMessage = e instanceof Error ? e.message : String(e); console.error("Failed to construct WebAssembly module for Webcil image:", { wasmPath, errorMessage }); - return false; + throw new Error(`Failed to construct WebAssembly module for Webcil image '${wasmPath}': ${errorMessage}`); } const tableStartIndex = wasmTable.length;