@@ -209,7 +209,7 @@ data LSMTreeError =
209209 -- the idempotent operation 'Database.LSMTree.Common.closeCursor'.
210210 | ErrCursorClosed
211211 | ErrSnapshotExists SnapshotName
212- | ErrSnapshotNotExists SnapshotName
212+ | ErrSnapshotDoesNotExist SnapshotName
213213 | ErrSnapshotDeserialiseFailure DeserialiseFailure SnapshotName
214214 | ErrSnapshotWrongTableType
215215 SnapshotName
@@ -1294,7 +1294,7 @@ openSnapshot sesh label tableType override snap resolve = do
12941294 -- Guard that the snapshot exists
12951295 let snapDir = Paths. namedSnapshotDir (sessionRoot seshEnv) snap
12961296 FS. doesDirectoryExist hfs (Paths. getNamedSnapshotDir snapDir) >>= \ b ->
1297- unless b $ throwIO (ErrSnapshotNotExists snap)
1297+ unless b $ throwIO (ErrSnapshotDoesNotExist snap)
12981298
12991299 let SnapshotMetaDataFile contentPath = Paths. snapshotMetaDataFile snapDir
13001300 SnapshotMetaDataChecksumFile checksumPath = Paths. snapshotMetaDataChecksumFile snapDir
@@ -1360,7 +1360,7 @@ deleteSnapshot sesh snap = do
13601360 let snapDir = Paths. namedSnapshotDir (sessionRoot seshEnv) snap
13611361 doesSnapshotExist <-
13621362 FS. doesDirectoryExist (sessionHasFS seshEnv) (Paths. getNamedSnapshotDir snapDir)
1363- unless doesSnapshotExist $ throwIO (ErrSnapshotNotExists snap)
1363+ unless doesSnapshotExist $ throwIO (ErrSnapshotDoesNotExist snap)
13641364 FS. removeDirectoryRecursive hfs (Paths. getNamedSnapshotDir snapDir)
13651365
13661366{-# SPECIALISE listSnapshots :: Session IO h -> IO [SnapshotName] #-}
0 commit comments