changeset 198:b305c678923a

fixed error handling for chained actions
author koff
date Mon, 10 Oct 2016 03:14:00 +0300
parents 86187b01c4e0
children 43b1017ce100 27ea7f07e2e4
files Implab/ActionChainTaskBase.cs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);