How can I get the return code from the liquibase updateDatabase ant task and then handle that error

I have created a question for this on stack overflow basically I want to be able to handle errors from updating databases through ant with liquibase so I can act on these errors through ant. Is this possible? what I’m looking for in something similar to this from the ant exec task.