curl should fail on error