Work on debugging
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ writeSaveSlot ss u = do
|
||||
readSaveSlot :: SaveSlot -> IO (Universe -> Maybe Universe)
|
||||
readSaveSlot ss = do
|
||||
fExists <- doesFileExist $ saveSlotPath ss
|
||||
when (not fExists) $ error "Tried to read non-existant save file"
|
||||
unless fExists $ error "Tried to read non-existant save file"
|
||||
mcw <- decodeFileStrict $ saveSlotPath ss
|
||||
flip (maybe (error "Tried to read incorrectly encoded save file")) mcw $ \cw ->
|
||||
return $ \uv -> Just
|
||||
|
||||
Reference in New Issue
Block a user