Correct way to signal an "error" in a task

0 views
Skip to first unread message

programmer.py

unread,
May 8, 2008, 9:04:03 PM5/8/08
to paver
What is the correct way to tell paver an error has occurred in a task?

Thanks!
jw

Kevin Dangoor

unread,
May 8, 2008, 10:22:10 PM5/8/08
to pa...@googlegroups.com
On May 8, 2008, at 9:04 PM, programmer.py wrote:

>
> What is the correct way to tell paver an error has occurred in a task?

Assuming you mean an error that should stop the build, the right thing
to do is raise BuildFailure. Right now, BuildFailure doesn't get any
kind of special treatment, but I'm sure it will at some point.

Kevin

Reply all
Reply to author
Forward
0 new messages