chore: don't redirect, but show a nullResult for Left
This commit is contained in:
parent
fabf56c164
commit
ce0f48b82a
@ -152,7 +152,13 @@ postEAutoOccurrenceR tid ssh csh examn = do
|
|||||||
(eaofMapping, eaofAssignment, _ignoredOccurrences) <- case autoOccurrenceResult of
|
(eaofMapping, eaofAssignment, _ignoredOccurrences) <- case autoOccurrenceResult of
|
||||||
(Left e) -> do
|
(Left e) -> do
|
||||||
addMessageI Error e
|
addMessageI Error e
|
||||||
redirect $ CExamR tid ssh csh examn EUsersR
|
pure ( ExamOccurrenceMapping {
|
||||||
|
examOccurrenceMappingRule = examOccurrenceRule,
|
||||||
|
examOccurrenceMappingMapping = Map.empty
|
||||||
|
}
|
||||||
|
, Map.map (view _2) participants'
|
||||||
|
, eaocIgnoreRooms eaofConfig
|
||||||
|
)
|
||||||
(Right r) -> pure r
|
(Right r) -> pure r
|
||||||
-- TODO use returned ignoredOccurrences
|
-- TODO use returned ignoredOccurrences
|
||||||
return $ Just ExamAutoOccurrenceAcceptForm{..}
|
return $ Just ExamAutoOccurrenceAcceptForm{..}
|
||||||
|
|||||||
Reference in New Issue
Block a user