Add more information on iframe checksum mismatch (#1858)

This commit is contained in:
José Valim 2023-04-13 11:54:40 +02:00 committed by GitHub
parent 971b243f10
commit 319725c331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ function verifyIframeSource(iframeUrl) {
.then((html) => { .then((html) => {
if (sha256Base64(html) !== IFRAME_SHA256) { if (sha256Base64(html) !== IFRAME_SHA256) {
throw new Error( throw new Error(
"The loaded iframe content doesn't have the expected checksum" `The iframe loaded from ${iframeUrl} doesn't have the expected checksum ${IFRAME_SHA256}`
); );
} }
}); });