Skip to content

Commit 51cc00f

Browse files
committed
Merge pull request #5 from jedwards1211/pass-filename
pass filename to <ErrorReporter/>
2 parents ca71621 + 43874ca commit 51cc00f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/development.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export default function catchErrors({ filename, components, imports }) {
2323
console.error(err);
2424
}
2525
return React.createElement(ErrorReporter, {
26-
error: err
26+
error: err,
27+
filename
2728
});
2829
}
2930
};

0 commit comments

Comments
 (0)