🥚 Console banner

This commit is contained in:
Alicia Sykes
2021-07-31 18:53:12 +01:00
parent 3434bfacba
commit 122627f6ce
3 changed files with 20 additions and 0 deletions

View File

@@ -1,11 +1,15 @@
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
import { warningMsg, raiseBug } from '@/utils/CoolConsole';
/**
* 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) {
warningMsg();
console.warn(msg);
raiseBug();
};
export default ErrorHandler;