Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(hogql): correct the action-not-found error message (#74010)

Alex Lider35f1f5afa22f
diff --git a/posthog/hogql/functions/action.py b/posthog/hogql/functions/action.py
index 23a6109e366f..d9daedab503d 100644
--- a/posthog/hogql/functions/action.py
+++ b/posthog/hogql/functions/action.py
@@ -25,7 +25,7 @@ def matches_action(node: ast.Expr, args: list[ast.Expr], context: HogQLContext,
fix=escape_clickhouse_string(actions[0].name),
)
return action_to_expr(actions[0], events_alias=events_alias)
- raise QueryError(f"Could not find cohort with ID {arg.value}", node=arg)
+ raise QueryError(f"Could not find an action with ID {arg.value}", node=arg)
if isinstance(arg.value, str):
actions = Action.objects.filter(name=arg.value, team__project_id=context.project_id).all()