Print error when failing. Closes #118.