Require --isolate to have an absolute directory, fixes #367
This commit is contained in:
parent
9375255452
commit
03dfd0cba0
@ -226,7 +226,7 @@ absolutePathParser f = case isValid f && isAbsolute f of
|
|||||||
False -> Left "Please enter a valid absolute filepath."
|
False -> Left "Please enter a valid absolute filepath."
|
||||||
|
|
||||||
isolateParser :: FilePath -> Either String FilePath
|
isolateParser :: FilePath -> Either String FilePath
|
||||||
isolateParser f = case isValid f of
|
isolateParser f = case isValid f && isAbsolute f of
|
||||||
True -> Right $ normalise f
|
True -> Right $ normalise f
|
||||||
False -> Left "Please enter a valid filepath for isolate dir."
|
False -> Left "Please enter a valid filepath for isolate dir."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user