log an exception if search-thread encounters a failure
This commit is contained in:
@@ -6,7 +6,7 @@ struct
|
||||
let
|
||||
val iterator = LineGap.moveIteratorToIdx (idx, iterator)
|
||||
in
|
||||
if LineGap.isIteratorAtEnd iterator then
|
||||
if idx = #textLength iterator then
|
||||
if prevFinalPos < 0 then acc
|
||||
else PersistentVector.append (startPos, prevFinalPos, acc)
|
||||
else
|
||||
|
||||
Submodule lib/brolib-sml updated: 1d6213636e...ec62efb40c
@@ -7,6 +7,7 @@ struct
|
||||
val (buffer, dfa, time) = Mailbox.recv SearchMailbox.mailbox
|
||||
val iterator = LineGap.makeStringIterator buffer
|
||||
val searchList = SearchList.build (iterator, dfa)
|
||||
handle e => ExceptionLogger.log e
|
||||
val msg = InputMsg.WITH_SEARCH_LIST (searchList, time)
|
||||
val () = InputMailbox.append msg
|
||||
in
|
||||
|
||||
Reference in New Issue
Block a user