fix(tools): add hint for project_not_found error

This commit is contained in:
Hein
2026-04-02 16:36:15 +02:00
parent 9cfcb5621b
commit d1d140e464
2 changed files with 11 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ func resolveProject(ctx context.Context, db *store.DB, sessions *session.ActiveP
Type: mcperrors.TypeProjectNotFound,
Field: "project",
Project: projectRef,
Hint: fmt.Sprintf("project %q does not exist yet; call create_project with name=%q first, then retry", projectRef, projectRef),
},
)
}