Do not commit when there is an error