summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/evaluate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evaluate.c b/src/evaluate.c
index cb27f7c2..4eb36e2d 100644
--- a/src/evaluate.c
+++ b/src/evaluate.c
@@ -2888,7 +2888,7 @@ static int rule_translate_index(struct eval_ctx *ctx, struct rule *rule)
if (!rule->handle.position.id)
return cmd_error(ctx, &rule->handle.index.location,
"Could not process rule: %s",
- strerror(EINVAL));
+ strerror(ENOENT));
return 0;
}