warnf(config->global, "Binary output can mess up your terminal. "
"Use \"--output -\" to tell curl to output it to your terminal "
"anyway, or consider \"--output <FILE>\" to save to a file.\n");
- config->synthetic_error = ERR_BINARY_TERMINAL;
+ config->synthetic_error = TRUE;
return failure;
}
}
#include "tool_urlglob.h"
#include "tool_formparse.h"
-typedef enum {
- ERR_NONE,
- ERR_BINARY_TERMINAL = 1, /* binary to terminal detected */
- ERR_LAST
-} curl_error;
-
struct GlobalConfig;
struct State {
double expect100timeout;
bool suppress_connect_headers; /* suppress proxy CONNECT response headers
from user callbacks */
- curl_error synthetic_error; /* if non-zero, it overrides any libcurl
- error */
+ bool synthetic_error; /* if TRUE, this is tool-internal error */
bool ssh_compression; /* enable/disable SSH compression */
long happy_eyeballs_timeout_ms; /* happy eyeballs timeout in milliseconds.
0 is valid. default: CURL_HET_DEFAULT. */