We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b27959 commit 8a4bb64Copy full SHA for 8a4bb64
lib/Stats.js
@@ -51,9 +51,8 @@ Stats.prototype.toJson = function toJson(options, forToString) {
51
}
52
function formatError(e) {
53
var text = "";
54
- if(e.module) {
55
- // text += e.module.readableIdentifier(requestShortener) + "\n";
56
- text += e.module.identifier() + "\n";
+ if(e.module && e.module.readableIdentifier && typeof e.module.readableIdentifier === "function") {
+ text += e.module.readableIdentifier(requestShortener) + "\n";
57
} else if(e.file) {
58
text += e.file + "\n";
59
0 commit comments