Skip to content

Commit

Permalink
WIP debug
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Jan 10, 2025
1 parent 794c550 commit 20fee47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cardano-cli/src/Cardano/CLI/Read.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,9 @@ readCostModels sbe (File fp) = do
bytes <- handleIOExceptT (CostModelsErrorReadFile . FileIOError fp) $ LBS.readFile fp
costModels <- firstExceptT (CostModelsErrorJSONDecode fp) . except $ Aeson.eitherDecode bytes
when (null $ fromAlonzoCostModels costModels) $ throwE $ CostModelsErrorEmpty fp
forM_ (allValues @L.Language) $ checkCostModelSize costModels
forM_ (allValues @L.Language) $ \lg -> do
liftIO $ putStrLn $ "Checking " ++ show lg
checkCostModelSize costModels lg
return costModels
where
checkCostModelSize :: L.CostModels -> L.Language -> ExceptT CostModelsError IO ()
Expand Down

0 comments on commit 20fee47

Please sign in to comment.