Adds additional safeguards for edge cases, and improves theme coverage
This commit is contained in:
11
src/utils/ErrorHandler.js
Normal file
11
src/utils/ErrorHandler.js
Normal file
@@ -0,0 +1,11 @@
|
||||
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
|
||||
|
||||
/**
|
||||
* Function called when an error happens
|
||||
* If you wish to use an error logging service, put code for it here
|
||||
*/
|
||||
const ErrorHandler = function handler(msg) {
|
||||
console.warn(msg);
|
||||
};
|
||||
|
||||
export default ErrorHandler;
|
||||
Reference in New Issue
Block a user