On Sunday, 9 September 2018 at 01:09:24 UTC, Andrei Alexandrescu wrote:
it does stand to reason to print the last exception in a chain, instead of the head, as the most relevant cause. Guess we'd do good to have such functionality in the stdlib.

So given code like:

  scope (exit) throw new Exception("cleanup failed");
  throw new Exception("main operation failed");

You would prefer that this show the "cleanup failed" exception more prominently than the "main operation failed" exception?

Reply via email to