Permalink
Browse files

omission of logging on an omap function, outcome would get lost

  • Loading branch information...
1 parent c62fe0b commit d03ed36e63911297966b40500953d2cb707e5551 @cloudshift committed Mar 23, 2012
Showing with 13 additions and 3 deletions.
  1. +13 −3 cloudshift/Mixin.hx
View
@@ -667,8 +667,12 @@ class OutcomeX {
else {
if (err != null)
err(either.left().get());
- else
+ else {
Core.error(Std.string(either.left().get()));
+#if (debug && nodejs)
+ Sys.exit(1);
+#end
+ }
}
});
}
@@ -684,9 +688,9 @@ class OutcomeX {
},err);
} else {
Core.error(Std.string(either.left().get()));
- #if nodejs
+#if (debug && nodejs)
Sys.exit(1);
- #end
+#end
}
});
return roc;
@@ -701,6 +705,12 @@ class OutcomeX {
} else {
if (err != null)
err(either.left().get());
+ else {
+ Core.error(Std.string(either.left().get()));
+#if (debug && nodejs)
+ Sys.exit(1);
+#end
+ }
}
});
return roc;

0 comments on commit d03ed36

Please sign in to comment.