mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Redirect error messages to stderr
This commit is contained in:
parent
5b6a106b34
commit
836c28098c
1 changed files with 3 additions and 3 deletions
|
|
@ -56,7 +56,7 @@ static int get_match(const char *input, const char *pattern, char **match)
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
regerror(ret, &re, err, sizeof(err));
|
regerror(ret, &re, err, sizeof(err));
|
||||||
error_printf("regex error: %s", err);
|
fprintf(stderr, "regex error: %s", err);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -269,7 +269,7 @@ void config_file_parse(const int argc, char *argv[])
|
||||||
ret = ini_parse(c->path, data_handler, NULL);
|
ret = ini_parse(c->path, data_handler, NULL);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
error_printf("Unable to parse configuration file (%d)", ret);
|
fprintf(stderr, "Error: Unable to parse configuration file (%d)", ret);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
c->section_name = NULL;
|
c->section_name = NULL;
|
||||||
|
|
@ -290,7 +290,7 @@ void config_file_parse(const int argc, char *argv[])
|
||||||
ret = ini_parse(c->path, data_handler, NULL);
|
ret = ini_parse(c->path, data_handler, NULL);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
error_printf("Unable to parse configuration file (%d)", ret);
|
fprintf(stderr, "Error: Unable to parse configuration file (%d)", ret);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue