log CatchableError in poll()

This commit is contained in:
Ștefan Talpalaru 2019-05-28 12:49:36 +02:00
parent aaa73d4888
commit ef319483be
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 6 additions and 1 deletions

View File

@ -155,7 +155,12 @@ proc process*(nimbus: NimbusObject) =
# Main loop
while nimbus.state == Running:
poll()
try:
poll()
except CatchableError:
debug "Exception in poll()",
exc = getCurrentException().name,
err = getCurrentExceptionMsg()
# Stop loop
waitFor nimbus.stop()