[Mono-bugs] [Bug 475746] mdoc always exits with exit-code 0

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 17 13:45:56 EST 2009


User jpryor at novell.com added comment

Jonathan Pryor <jpryor at novell.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |jpryor at novell.com
         Resolution|                            |FIXED

--- Comment #1 from Jonathan Pryor <jpryor at novell.com>  2009-02-17 11:45:55 MST ---
Fixed in trunk, r127192.

This is the easiest thing to do -- set the ExitCode to non-zero if an exception
occurrs -- but a full review of all codepaths to ensure that only exceptions
are used for error reporting (which would thus hit the ExitCode-setting code
path) has not been completed.  Of note, until recently monodocer.cs used it's
own error reporting mechanism that didn't use exceptions, though this was fixed
~last week...

I'm also not sure if we should specify any values other than 0/1 (pass/fail)...

2009-02-17  Jonathan Pryor <jpryor at novell.com>

    * Mono.Documentation/mdoc.cs: Set Environment.ExitCode=1 if an
      exception occurs, so that calling code can determine that an error
      occurred w/o resorting to parsing stderr.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list