Skip to content

Commit 5a5c739

Browse files
trevtrichsteren
authored andcommitted
Fix error handler utility example in README (#34)
I believe the `errorHandlerUtility` example needs to have both production & local conform to the expected `report` shape to work properly.
1 parent 0306f4c commit 5a5c739

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ if (environment === 'production') {
208208
});
209209

210210
} else {
211-
errorHandler = console.error;
211+
errorHandler = {report: console.error};
212212
}
213213

214214
export default errorHandler;

0 commit comments

Comments
 (0)