Skip to content

Commit 20fee47

Browse files
committed
WIP debug
1 parent 794c550 commit 20fee47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cardano-cli/src/Cardano/CLI/Read.hs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,9 @@ readCostModels sbe (File fp) = do
11071107
bytes <- handleIOExceptT (CostModelsErrorReadFile . FileIOError fp) $ LBS.readFile fp
11081108
costModels <- firstExceptT (CostModelsErrorJSONDecode fp) . except $ Aeson.eitherDecode bytes
11091109
when (null $ fromAlonzoCostModels costModels) $ throwE $ CostModelsErrorEmpty fp
1110-
forM_ (allValues @L.Language) $ checkCostModelSize costModels
1110+
forM_ (allValues @L.Language) $ \lg -> do
1111+
liftIO $ putStrLn $ "Checking " ++ show lg
1112+
checkCostModelSize costModels lg
11111113
return costModels
11121114
where
11131115
checkCostModelSize :: L.CostModels -> L.Language -> ExceptT CostModelsError IO ()

0 commit comments

Comments
 (0)