Fail less cryptically if curl fails