aboutsummaryrefslogtreecommitdiffstats
path: root/tools/serd-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/serd-filter.c')
-rw-r--r--tools/serd-filter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/serd-filter.c b/tools/serd-filter.c
index ed22373c..0804d6ba 100644
--- a/tools/serd-filter.c
+++ b/tools/serd-filter.c
@@ -51,7 +51,7 @@ on_pattern_event(void* const handle, const SerdEvent* const event)
if (event->type == SERD_STATEMENT) {
FilterPattern* const pat = (FilterPattern*)handle;
if (pat->s) {
- return SERD_ERR_INVALID;
+ return SERD_BAD_PATTERN;
}
const SerdStatement* const statement = event->statement.statement;
@@ -149,7 +149,7 @@ run(Options opts)
if (!pattern.stream) {
log_error(app.world, "failed to open pattern");
- return SERD_ERR_UNKNOWN;
+ return SERD_UNKNOWN_ERROR;
}
// Set up the output pipeline: filter -> writer
@@ -157,7 +157,7 @@ run(Options opts)
parse_pattern(app.world, target, &pattern, !opts.invert);
if (!filter) {
log_error(app.world, "failed to set up filter");
- return SERD_ERR_UNKNOWN;
+ return SERD_UNKNOWN_ERROR;
}
serd_close_input(&pattern);
@@ -245,7 +245,7 @@ parse_option(OptionIter* const iter, Options* const opts)
}
ARG_ERRORF("invalid option -- '%c'\n", opt);
- return SERD_ERR_BAD_ARG;
+ return SERD_BAD_ARG;
#undef ARG_ERRORF
}