Error handling on non-fatal errors...

View: New views
1 Messages — Rating Filter:   Alert me  

Error handling on non-fatal errors...

by Rory Clark-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I have a build script that uses regular expressions to manipulate files and it generates a lot of warnings and non-fatal error messages.

 

For example, see this code:

<regex pattern="(?'assemblyinfo.file.version'\[assembly: AssemblyFileVersion\(&quot;[^&quot;]*&quot;\)\])" input="${assemblyinfo.contents}" failonerror="false" verbose="false"/>

 

If this code fails, I want to echo to the console, but I don’t want to get a non-fatal error or a warning about it.

 

How would I go about this?

 

Thanks!

Rory


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users
LightInTheBox - Buy quality products at wholesale price