Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix module names in "Could not load XY" exceptions #2906

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/modules/html.js
Expand Up @@ -48,11 +48,11 @@ import { globalObject } from "../libs/globalObject.js";
}
});
}
return Promise.reject(new Error("Could not load " + name));
return Promise.reject(new Error("Could not load html2canvas"));
// @endif
})()
.catch(function(e) {
return Promise.reject(new Error("Could not load dompurify: " + e));
return Promise.reject(new Error("Could not load html2canvas: " + e));
})
.then(function(html2canvas) {
return html2canvas.default ? html2canvas.default : html2canvas;
Expand Down Expand Up @@ -88,7 +88,7 @@ import { globalObject } from "../libs/globalObject.js";
}
});
}
return Promise.reject(new Error("Could not load " + name));
return Promise.reject(new Error("Could not load dompurify"));
// @endif
})()
.catch(function(e) {
Expand Down
4 changes: 2 additions & 2 deletions src/modules/svg.js
Expand Up @@ -64,11 +64,11 @@ import { globalObject } from "../libs/globalObject.js";
}
});
}
return Promise.reject(new Error("Could not load " + name));
return Promise.reject(new Error("Could not load canvg"));
// @endif
})()
.catch(function(e) {
return Promise.reject(new Error("Could not load dompurify: " + e));
return Promise.reject(new Error("Could not load canvg: " + e));
})
.then(function(canvg) {
return canvg.default ? canvg.default : canvg;
Expand Down