Require --isolate to have an absolute directory, fixes #367

This commit is contained in:
2022-05-23 23:50:26 +02:00
parent 9375255452
commit 03dfd0cba0

View File

@@ -226,7 +226,7 @@ absolutePathParser f = case isValid f && isAbsolute f of
False -> Left "Please enter a valid absolute filepath."
isolateParser :: FilePath -> Either String FilePath
isolateParser f = case isValid f of
isolateParser f = case isValid f && isAbsolute f of
True -> Right $ normalise f
False -> Left "Please enter a valid filepath for isolate dir."