diff --git a/lib/plugins/digging.js b/lib/plugins/digging.js
index 39d3efbc5..496cf63e7 100644
--- a/lib/plugins/digging.js
+++ b/lib/plugins/digging.js
@@ -24,6 +24,11 @@ function inject (bot) {
       digFace = 'auto'
     }
 
+    const waitTime = bot.digTime(block)
+    if (waitTime === Infinity) {
+      throw new Error(`dig time for ${block?.name ?? block} is Infinity`)
+    }
+
     bot.targetDigFace = 1 // Default (top)
 
     if (forceLook !== 'ignore') {
@@ -127,7 +132,6 @@ function inject (bot) {
       location: block.position,
       face: bot.targetDigFace // default face is 1 (top)
     })
-    const waitTime = bot.digTime(block)
     waitTimeout = setTimeout(finishDigging, waitTime)
     bot.targetDigBlock = block
     bot.swingArm()