diff --git a/src/errorHandling.js b/src/errorHandling.js new file mode 100644 index 0000000..6a6aeb7 --- /dev/null +++ b/src/errorHandling.js @@ -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;