best error handling
This commit is contained in:
parent
6f40e69019
commit
887eb85764
7
src/errorHandling.js
Normal file
7
src/errorHandling.js
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
function errorHandling(error, origin) {
|
||||||
|
console.error({ error, origin });
|
||||||
|
console.error("OOPS! An error occoured. Please create an issue on the git repo.");
|
||||||
|
process.exitCode = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default errorHandling;
|
Loading…
Reference in a new issue