failf() now respects the mute flag
This commit is contained in:
parent
cd59f13da6
commit
c622f2bb4e
@ -120,7 +120,7 @@ void curl_slist_free_all(struct curl_slist *list)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* infof() is for info message along the way */
|
/* Curl_infof() is for info message along the way */
|
||||||
|
|
||||||
void Curl_infof(struct UrlData *data, char *fmt, ...)
|
void Curl_infof(struct UrlData *data, char *fmt, ...)
|
||||||
{
|
{
|
||||||
@ -133,7 +133,7 @@ void Curl_infof(struct UrlData *data, char *fmt, ...)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* failf() is for messages stating why we failed, the LAST one will be
|
/* Curl_failf() is for messages stating why we failed, the LAST one will be
|
||||||
returned for the user (if requested) */
|
returned for the user (if requested) */
|
||||||
|
|
||||||
void Curl_failf(struct UrlData *data, char *fmt, ...)
|
void Curl_failf(struct UrlData *data, char *fmt, ...)
|
||||||
@ -142,7 +142,7 @@ void Curl_failf(struct UrlData *data, char *fmt, ...)
|
|||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
if(data->errorbuffer)
|
if(data->errorbuffer)
|
||||||
vsnprintf(data->errorbuffer, CURL_ERROR_SIZE, fmt, ap);
|
vsnprintf(data->errorbuffer, CURL_ERROR_SIZE, fmt, ap);
|
||||||
else {
|
else if(!data->bits.mute) {
|
||||||
/* no errorbuffer receives this, write to data->err instead */
|
/* no errorbuffer receives this, write to data->err instead */
|
||||||
vfprintf(data->err, fmt, ap);
|
vfprintf(data->err, fmt, ap);
|
||||||
fprintf(data->err, "\n");
|
fprintf(data->err, "\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user