Make curl actually fail on errors