Fix propagation of errors and add a test
Bump patch