correct name of createDirectoryUnder in error message
This commit is contained in:
parent
db3ad985bd
commit
b11c61e9db
1 changed files with 2 additions and 2 deletions
|
@ -77,11 +77,11 @@ createDirectoryUnder' topdirs dir0 mkdir = do
|
||||||
| null dirs ->
|
| null dirs ->
|
||||||
liftIO $ unlessM (doesDirectoryExist (fromRawFilePath topdir)) $
|
liftIO $ unlessM (doesDirectoryExist (fromRawFilePath topdir)) $
|
||||||
ioError $ customerror doesNotExistErrorType $
|
ioError $ customerror doesNotExistErrorType $
|
||||||
"createDirectoryFrom: " ++ fromRawFilePath topdir ++ " does not exist"
|
"createDirectoryUnder: " ++ fromRawFilePath topdir ++ " does not exist"
|
||||||
| otherwise -> createdirs $
|
| otherwise -> createdirs $
|
||||||
map (topdir P.</>) (reverse (scanl1 (P.</>) dirs))
|
map (topdir P.</>) (reverse (scanl1 (P.</>) dirs))
|
||||||
_ -> liftIO $ ioError $ customerror userErrorType
|
_ -> liftIO $ ioError $ customerror userErrorType
|
||||||
("createDirectoryFrom: not located in " ++ unwords (map fromRawFilePath topdirs))
|
("createDirectoryUnder: not located in " ++ unwords (map fromRawFilePath topdirs))
|
||||||
where
|
where
|
||||||
customerror t s = mkIOError t s Nothing (Just (fromRawFilePath dir0))
|
customerror t s = mkIOError t s Nothing (Just (fromRawFilePath dir0))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue