Skip to content

Commit

Permalink
Log Throwables that happened during the build to the outErr of the Bl…
Browse files Browse the repository at this point in the history
…azeCommandDispatcher. This way they can be logged in the BEP.

PiperOrigin-RevId: 213998158
  • Loading branch information
lfpino authored and Copybara-Service committed Sep 21, 2018
1 parent dc0a4de commit 3936191
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,9 @@ private BlazeCommandResult execExclusively(
}
return result;
} catch (Throwable e) {
outErr.printErr(
"Internal error thrown during build. Printing stack trace: "
+ Throwables.getStackTraceAsString(e));
e.printStackTrace();
BugReport.printBug(outErr, e);
BugReport.sendBugReport(e, args, env.getCrashData());
Expand Down

0 comments on commit 3936191

Please sign in to comment.