🚧 Small change to Error Handler, WIP

This commit is contained in:
Alicia Sykes 2021-07-04 19:33:29 +01:00
parent e56fbdfa5a
commit f7c159a0a2

View File

@ -4,8 +4,8 @@
* 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);
const ErrorHandler = function handler(msg, error = 'No stack trace provided') {
console.warn(msg, error);
};
export default ErrorHandler;