We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf1baab commit be062f7Copy full SHA for be062f7
src/plugins/default/DuplicateCheckerPlugin.ts
@@ -28,9 +28,10 @@ export class DuplicateCheckerPlugin implements IEventPlugin {
28
let hashCode = 0;
29
30
while (error) {
31
- hashCode += (hashCode * 397) ^ Utils.getHashCode(error.message);
32
-
33
- if (error.stack_trace && error.stack_trace.length) {
+ if (error.message && error.message.length){
+ hashCode += (hashCode * 397) ^ Utils.getHashCode(error.message);
+ }
34
+ if (error.stack_trace && error.stack_trace.length) {
35
hashCode += (hashCode * 397) ^ Utils.getHashCode(JSON.stringify(error.stack_trace));
36
}
37
error = error.inner;
0 commit comments