diff --git a/scheduled-script.js b/scheduled-script.js index 85a4dc1..f4d51e9 100644 --- a/scheduled-script.js +++ b/scheduled-script.js @@ -3,7 +3,7 @@ const date = new Date; const minutes = date.getMinutes(); if(minutes < 30) { - process.exit(0) + console.log("Everything looks good here!") } else { - process.exit(1) + throw new Error("This script fails when it runs after the half-hour.") }