Fixes #822. Deps.flush hides Error.message.

Prints e.message if e.stack undefined.
This commit is contained in:
Chris Mather
2013-03-20 19:58:31 -07:00
parent ac378fcefc
commit 5e1794b8a1

View File

@@ -137,7 +137,7 @@
try {
self._compute();
} catch (e) {
_debugFunc()("Exception from Deps recompute:", e.stack);
_debugFunc()("Exception from Deps recompute:", e.stack || e.message);
}
// If _compute() invalidated us, we run again immediately.
// A computation that invalidates itself indefinitely is an
@@ -228,7 +228,7 @@
func();
} catch (e) {
_debugFunc()("Exception from Deps afterFlush function:",
e.stack);
e.stack || e.message);
}
}
}