Generalize failOnError
Bump version to 0.3