output message when curl fails