@@ -340,7 +340,7 @@ envAtFocus :: ProofState -> TC Env
340340envAtFocus ps
341341 | not $ null (holes ps) = do g <- goal (Just (head (holes ps))) (pterm ps)
342342 return (premises g)
343− | otherwise = fail "No holes"
343+ | otherwise = fail $ "No holes in " ++ show (getProofTerm (pterm ps))
344344
345345goalAtFocus :: ProofState -> TC (Binder Type)
346346goalAtFocus ps
@@ -1083,7 +1083,8 @@ processTactic t ps
10831083 [] -> case t of
10841084 Focus _ -> return (ps, "") -- harmless to refocus when done, since
10851085 -- 'focus' doesn't fail
1086− _ -> fail $ "Nothing to fill in."
1086+ _ -> fail $ "Proof done, nothing to run tactic on: " ++ show t ++
1087+ "\n" ++ show (getProofTerm (pterm ps))
10871088 (h:_) -> do ps' <- execStateT (process t h) ps
10881089 let (ns_in, probs')
10891090 = case solved ps' of