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 ->
|
||||
liftIO $ unlessM (doesDirectoryExist (fromRawFilePath topdir)) $
|
||||
ioError $ customerror doesNotExistErrorType $
|
||||
"createDirectoryFrom: " ++ fromRawFilePath topdir ++ " does not exist"
|
||||
"createDirectoryUnder: " ++ fromRawFilePath topdir ++ " does not exist"
|
||||
| otherwise -> createdirs $
|
||||
map (topdir P.</>) (reverse (scanl1 (P.</>) dirs))
|
||||
_ -> liftIO $ ioError $ customerror userErrorType
|
||||
("createDirectoryFrom: not located in " ++ unwords (map fromRawFilePath topdirs))
|
||||
("createDirectoryUnder: not located in " ++ unwords (map fromRawFilePath topdirs))
|
||||
where
|
||||
customerror t s = mkIOError t s Nothing (Just (fromRawFilePath dir0))
|
||||
|
||||
|
|
Loading…
Reference in a new issue