Skip to content

Commit 781caef

Browse files
CR
1 parent faed3a4 commit 781caef

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

src/Components/Web.JS/dist/Release/blazor.webassembly.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,8 @@ function createEmscriptenModuleInstance(resourceLoader: WebAssemblyResourceLoade
221221
mono_wasm_add_assembly(dependency.name, heapAddress, data.length);
222222
MONO.loaded_files.push(toAbsoluteUrl(dependency.url));
223223
} catch (errorInfo) {
224-
// If it's a 404 on a .pdb, we don't want to block the app from starting up.
225-
// We'll just skip that file and continue (though the 404 is logged in the console).
226-
// This happens if you build a Debug build but then run in Production environment.
227-
const isPdb404 = errorInfo instanceof XMLHttpRequest
228-
&& errorInfo.status === 404
229-
&& dependency.name.match(/\.pdb$/);
230-
if (!isPdb404) {
231224
onError(errorInfo);
232225
return;
233-
}
234226
}
235227

236228
Module.removeRunDependency(runDependencyId);

src/Components/Web.JS/src/Platform/WebAssemblyResourceLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ async function assertContentHashMatchesAsync(name: string, data: ArrayBuffer, ex
161161
const actualByte = actualHash[byteIndex];
162162
if (actualByte !== expectedByte) {
163163
const actualHashString = Array.from(actualHash).map(b => b.toString(16).padStart(2, '0')).join('');
164-
throw new Error(`Resource hash mismatch for '${name}'. Expected prefix: '${expectedHashPrefix}'. Actual hash: '${actualHashString}'`);
164+
throw new Error(`Resource hash mismatch for '${name}'. Expected prefix: '${expectedHashPrefix}'. Actual hash: '${actualHashString}'. If a deployment was in progress, try reloading the page.`);
165165
}
166166
}
167167
}

0 commit comments

Comments
 (0)