Skip to content

Commit

Permalink
fix module names in "Could not load XY" exceptions (#2906)
Browse files Browse the repository at this point in the history
  • Loading branch information
HackbrettXXX committed Sep 9, 2020
1 parent bc6c640 commit de1e8ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit de1e8ef

Please sign in to comment.