curl: Log error code too