Skip to content

Commit ec5d0bc

Browse files
committed
Create directory if missing
1 parent 14b3719 commit ec5d0bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cardano-testnet/src/Testnet/Runtime.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ startLedgerNewEpochStateLogging testnetRuntime tmpWorkspace = withFrozenCallStac
297297
liftIOAnnotated $ IO.doesDirectoryExist logDir >>= \case
298298
True -> pure ()
299299
False -> do
300-
throwString $ "Log directory does not exist: " <> logDir <> " - cannot start logging epoch states"
300+
void $ createDirectoryIfMissingNew logDir
301+
--throwString $ "Log directory does not exist: " <> logDir <> " - cannot start logging epoch states"
301302

302303
liftIOAnnotated (IO.doesFileExist logFile) >>= \case
303304
True -> return ()

0 commit comments

Comments
 (0)