Skip to content

Commit

Permalink
Write stack traces to stderr (#481)
Browse files Browse the repository at this point in the history
This will show up in the msbuild output with a higher importance by
default, and may also align more closely with the expectations of
command line users.

@marek-safar the other option is to make this the behavior of monolinker as well. What do you think?
  • Loading branch information
sbomer authored and marek-safar committed Mar 8, 2019
1 parent 77c2883 commit 2e4b687
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/linker/Linker/Driver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ public static int Execute (string[] args, ILogger customLogger = null)
driver.Run (customLogger);

} catch (Exception e) {
Console.WriteLine ("Fatal error in {0}", _linker);
Console.WriteLine (e);
return 1;
Console.Error.WriteLine ("Fatal error in {0}", _linker);
throw;
}

return 0;
Expand Down

0 comments on commit 2e4b687

Please sign in to comment.