I've actually changed all the exceptions I could find that used e.Messsage
to e.ToString(). The ToString method uses the innerexception where the
Message property doesn't.

We now get messages like this:

C:\src\sf.net\nant\NAnt.build(24,7):
 Error loading buildfile:
SourceForge.NAnt.BuildException: C:\src\sf.net\nant\NAnt.build(24,7):
 Error loading buildfile ---> System.Xml.XmlException: The 'property' start
tag
on line '23' doesn't match the end tag of 'target' in file
'file:///C:/src/sf.ne
t/nant/NAnt.build'. Line 24, position 7.
...
Try 'nant -help' for more information

I have checked in my changed. This ToString() usage may be a little verbose
in places, but we can clean those up. Right now I would say it is better to
have too much info, than not enough. This is will need to be addressed
before the final (1.0) release.

----- Original Message -----
From: "Gert Driesen" <[EMAIL PROTECTED]>
To: "Scott Hernandez" <[EMAIL PROTECTED]>; "Nant-Developers (E-mail)"
<[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 9:11 AM
Subject: Re: [nant-dev] original exception is discarded


> Would it be ok to always add the message of the innerexception or do you
> only want to do this for specific exceptions (like XmlException) ?
>
> Gert
> ----- Original Message -----
> From: "Scott Hernandez" <[EMAIL PROTECTED]>
> To: "Nant-Developers (E-mail)" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 02, 2003 6:59 PM
> Subject: Re: [nant-dev] original exception is discarded
>
>
> > +1
> > ----- Original Message -----
> > From: "Philip Nelson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, April 02, 2003 6:21 AM
> > Subject: Re: [nant-dev] original exception is discarded
> >
> >
> > >
> > > > while in fact we could add more infomation to that error message by
> > adding
> > > > the Message of the innerexception, eg.
> > >
> > > you bet!
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: ValueWeb:
> > Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > No other company gives more support or power for your dedicated server
> > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > _______________________________________________
> > Nant-developers mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/nant-developers
> >
> >
>
>



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to