mirror of
https://github.com/github/semantic.git
synced 2024-12-19 12:51:52 +03:00
Don’t call error handlers for partial matches.
This commit is contained in:
parent
d0677b71b7
commit
04a9b2dc25
@ -297,7 +297,10 @@ runAssignment toNode source = (\ assignment state -> disamb Left (Right . minimu
|
||||
None (err, state') -> if state == state' then next else None (err, state')
|
||||
Some as -> Some as) (None (makeError node, state)) as
|
||||
Throw e -> None (e, state)
|
||||
Catch during handler -> go during state `catchError` (flip go state { stateErrorCounter = succ stateErrorCounter } . handler . fst) >>= uncurry yield
|
||||
Catch during handler -> go during state `catchError` (\ (err, state') -> if state == state' then
|
||||
go (handler err) state { stateErrorCounter = succ stateErrorCounter }
|
||||
else
|
||||
None (err, state')) >>= uncurry yield
|
||||
Choose{} -> None (makeError node, state)
|
||||
Project{} -> None (makeError node, state)
|
||||
Children{} -> None (makeError node, state)
|
||||
|
Loading…
Reference in New Issue
Block a user