Capture duplicate error exception

This commit is contained in:
J-Jamet
2022-01-18 11:44:45 +01:00
parent d36fc19585
commit 616d073395

View File

@@ -36,7 +36,11 @@ abstract class ActionNodeDatabaseRunnable(
abstract fun nodeAction() abstract fun nodeAction()
override fun onStartRun() { override fun onStartRun() {
nodeAction() try {
nodeAction()
} catch (e: Exception) {
setError(e)
}
super.onStartRun() super.onStartRun()
} }