Commit 2fb1a0fa authored by Alexandre Delanoë's avatar Alexandre Delanoë

[ERROR] Fix NodeUser error.

parent 59956b27
Pipeline #94 canceled with stage
......@@ -141,7 +141,7 @@ subFlowCorpus username cName = do
maybeUserId <- getUser username
userId <- case maybeUserId of
Nothing -> nodeError NoUser
Nothing -> nodeError NoUserFound
-- mk NodeUser gargantua_id "Node Gargantua"
Just user -> pure $ userLight_id user
......@@ -177,7 +177,7 @@ subFlowAnnuaire username _cName = do
maybeUserId <- getUser username
userId <- case maybeUserId of
Nothing -> nodeError NoUser
Nothing -> nodeError NoUserFound
-- mk NodeUser gargantua_id "Node Gargantua"
Just user -> pure $ userLight_id user
......
......@@ -53,13 +53,13 @@ import Prelude hiding (null, id, map, sum)
data NodeError = NoListFound
| NoRootFound
| NoCorpusFound
| NoUserFound
| MkNode
| UserNoParent
| HasParent
| ManyParents
| NegativeId
| NotImplYet
| NoUser
| ManyNodeUsers
deriving (Show)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment