Menu

#1361 Error messages are written to standard output

v3.0
closed
2012-09-15
2008-10-14
kamol
No

Error messages generated by all tools should be written to error stream instead of standard output stream.

Discussion

  • Brian Rogers

    Brian Rogers - 2008-10-19

    I'm not sure if this should be changed. If you look at csc.exe, cl.exe, and msbuild.exe, they all output their errors to stdout. By convention, it seems like WiX's current behavior is correct.

     
  • kamol

    kamol - 2008-10-20

    Maybe it's correct by Microsoft convention, in my opinion it's not reasonable.

    I've made an extension that harvests light dependencies, prints them to standard output and and makes light to finish with an error. The error is also printed to standard output and gets mixed with the dependencies. I solved the problem by printing the dependencies to the error stream.

    In general it seems to be rather unconventional solution.

     
  • Rob Mensching

    Rob Mensching - 2008-12-01

    I hear you.

    However, the convention in this case is defined by the tools that the WiX toolset works with: csc.exe, cl.exe, vc.exe and MSBuild. MSBuild defines how errors and warnings are supposed to be output (namely the file path(line number) : error/warning ABBREVIATION Err# : message).

    I don't think we should deviate from this convention.

     
MongoDB Logo MongoDB