# HG changeset patch # User cin # Date 2014-11-19 10:34:09 # Node ID 38d6a4db35d7743284d2b6a08bc1dd899c116036 # Parent 1a8426e6e895a6f625001fc48706581e31fcd1a0 fixed Promise.Error handler diff --git a/Implab/Promise.cs b/Implab/Promise.cs --- a/Implab/Promise.cs +++ b/Implab/Promise.cs @@ -178,7 +178,7 @@ namespace Implab { public Promise(IPromise parent) { if (parent != null) - AddMappers( + AddHandler( null, null, () => { @@ -335,7 +335,7 @@ namespace Implab { var medium = new Promise(this); AddMappers( - null, + x => x, e => { error(e); return default(T); @@ -362,7 +362,7 @@ namespace Implab { var medium = new Promise(this); - AddMappers(null, handler, null, medium, true); + AddMappers(x => x, handler, null, medium, true); return medium; }