best error handling

This commit is contained in:
Julia Logan 2024-07-02 01:30:23 +02:00
parent 6f40e69019
commit 887eb85764
Signed by: julia
GPG key ID: 2CB69D1DB326E875

7
src/errorHandling.js Normal file
View 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;