Hi,
When an ApplicationException (like BuildException)
occurs in the ConsoleDriver.Main method, the cause of the exception (the
innerexception) is not shown to the user.
This means, for example, that when you specify a
buildfile containing invalid xml, you'll only get the message
"Error loading buildfile"
while in fact we could add more infomation to that
error message by adding the Message of the innerexception, eg.
Error loading buildfile. The specified
buildfile does not contain well-formed xml: The 'targdet' start tag on line '13'
doesn't match the
end tag of 'target' in file 'file:///D:/CVS/nant/build/nant-0.8.2-debug/bin/testerror.build'. Line 17, position 7. Should we change this behaviour ?
Gert
|
- Re: [nant-dev] original exception is discarded Gert Driesen
- Re: [nant-dev] original exception is discarded Philip Nelson
- Re: [nant-dev] original exception is discarded Scott Hernandez
- Re: [nant-dev] original exception is discarde... Gert Driesen
- Re: [nant-dev] original exception is disc... Scott Hernandez
- Re: [nant-dev] original exception is... Gert Driesen
- Re: [nant-dev] original exceptio... Scott Hernandez