summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-02 16:10:12 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-02 16:10:12 +0100
commit323dd35f9f347951d88130597a98e0a8da72d388 (patch)
tree6957c2cce86f3a9e71189355215944e6cc9f6b8c /src
parent01aaf17ea9eda174c7471b7529654cc41f7af5d0 (diff)
downloadfastd-323dd35f9f347951d88130597a98e0a8da72d388.tar
fastd-323dd35f9f347951d88130597a98e0a8da72d388.zip
Change error message for methods from `invalid' to `unsupported'
Diffstat (limited to 'src')
-rw-r--r--src/config.y4
-rw-r--r--src/options.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/config.y b/src/config.y
index ca2d8de..4efbde5 100644
--- a/src/config.y
+++ b/src/config.y
@@ -342,7 +342,7 @@ mode: TOK_TAP { conf->mode = MODE_TAP; }
protocol: TOK_STRING {
if (!fastd_config_protocol(ctx, conf, $1->str)) {
- fastd_config_error(&@$, ctx, conf, filename, depth, "invalid protocol");
+ fastd_config_error(&@$, ctx, conf, filename, depth, "unsupported protocol");
YYERROR;
}
}
@@ -350,7 +350,7 @@ protocol: TOK_STRING {
method: TOK_STRING {
if (!fastd_config_method(ctx, conf, $1->str)) {
- fastd_config_error(&@$, ctx, conf, filename, depth, "invalid method");
+ fastd_config_error(&@$, ctx, conf, filename, depth, "unsupported method");
YYERROR;
}
}
diff --git a/src/options.c b/src/options.c
index 333061a..cf53991 100644
--- a/src/options.c
+++ b/src/options.c
@@ -246,12 +246,12 @@ static void option_bind(fastd_context_t *ctx, fastd_config_t *conf, const char *
static void option_protocol(fastd_context_t *ctx, fastd_config_t *conf, const char *arg) {
if (!fastd_config_protocol(ctx, conf, arg))
- exit_error(ctx, "invalid protocol `%s'", arg);
+ exit_error(ctx, "unsupported protocol `%s'", arg);
}
static void option_method(fastd_context_t *ctx, fastd_config_t *conf, const char *arg) {
if (!fastd_config_method(ctx, conf, arg))
- exit_error(ctx, "invalid method `%s'", arg);
+ exit_error(ctx, "unsupported method `%s'", arg);
}
static void option_forward(fastd_context_t *ctx UNUSED, fastd_config_t *conf) {