File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Database/LSMTree/Internal Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ instance IsString SnapshotName where
103103 fromString = toSnapshotName
104104
105105data InvalidSnapshotNameError
106- = ErrSnapshotNameInvalid ! String
106+ = ErrInvalidSnapshotName ! String
107107 deriving stock (Show )
108108 deriving anyclass (Exception )
109109
@@ -173,7 +173,7 @@ isValidSnapshotName str =
173173toSnapshotName :: String -> SnapshotName
174174toSnapshotName str
175175 | isValidSnapshotName str = SnapshotName str
176- | otherwise = throw (ErrSnapshotNameInvalid str)
176+ | otherwise = throw (ErrInvalidSnapshotName str)
177177
178178snapshotsDir :: SessionRoot -> FsPath
179179snapshotsDir (SessionRoot dir) = dir </> mkFsPath [" snapshots" ]
Original file line number Diff line number Diff line change @@ -1420,7 +1420,7 @@ listSnapshots sesh = do
14201420 pure $ catMaybes snaps
14211421 where
14221422 checkSnapshot hfs root s = do
1423- -- TODO: rethrow 'ErrSnapshotNameInvalid ' as 'ErrSnapshotDirCorrupted'
1423+ -- TODO: rethrow 'ErrInvalidSnapshotName ' as 'ErrSnapshotDirCorrupted'
14241424 let snap = Paths. toSnapshotName s
14251425 -- check that it is a directory
14261426 b <- FS. doesDirectoryExist hfs
You can’t perform that action at this time.
0 commit comments