Add debugging info on curl fail