Use fail_with when failing instead of print_error