Showing the correct curl error

Previously, was echoing $ret as a string, which it isn't.