mirror of
https://github.com/Lissy93/dashy.git
synced 2025-01-08 20:40:30 +03:00
🚧 Small change to Error Handler, WIP
This commit is contained in:
parent
e56fbdfa5a
commit
f7c159a0a2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user