The error contains useful information when things fail, so check it first to get useful output in case of failure.