diff Implab/ActionChainTaskBase.cs @ 198:b305c678923a

fixed error handling for chained actions
author koff
date Mon, 10 Oct 2016 03:14:00 +0300
parents 40d7fed4a09e
children
line wrap: on
line diff
--- a/Implab/ActionChainTaskBase.cs	Thu Sep 01 10:43:31 2016 +0300
+++ b/Implab/ActionChainTaskBase.cs	Mon Oct 10 03:14:00 2016 +0300
@@ -50,7 +50,7 @@
                     p.On(SetResult, SetErrorInternal, SetCancelledInternal);
                     CancellationRequested(p.Cancel);
                 } catch (Exception err) {
-                    SetErrorInternal(error);
+                    SetErrorInternal(err);
                 }
             } else {
                 SetErrorInternal(error);