debug for the funnies lol

This commit is contained in:
CeciliaKelley33Mm 2024-10-12 09:55:05 +07:00
parent d973a76822
commit bfb7183d7b

View file

@ -1,3 +1,4 @@
const { match } = require('assert')
const process = require('process')
if (process.argv.length < 3) {
@ -31,5 +32,8 @@ if (currentTime.getTime() === targetTime.getTime()) {
console.log('[checkTime] time matches, now exiting with status 0 to make another runtime')
process.exit(0)
} else {
console.log('[checkTime] time doesn\'t match')
console.log(`currentTime is ${currentTime}`)
console.log(`targetTiem is ${targetTime}`)
process.exit(1)
}