Distinct from "unknown project": the caller omitted the project argument * entirely (no recognized key). Name the literal "project" key so the fix is * obvious (#640). Caller must free() result. */
| 2771 | * entirely (no recognized key). Name the literal "project" key so the fix is |
| 2772 | * obvious (#640). Caller must free() result. */ |
| 2773 | static char *build_missing_project_error(void) { |
| 2774 | return heap_strdup("{\"error\":\"missing required argument: project\",\"hint\":\"Pass " |
| 2775 | "the project as the \\\"project\\\" argument, e.g. " |
| 2776 | "{\\\"project\\\":\\\"<name from list_projects>\\\"}. Run " |
| 2777 | "list_projects to see indexed projects.\"}"); |
| 2778 | } |
| 2779 | |
| 2780 | /* Pick the right no-store error: a NULL project means the argument was missing |
| 2781 | * (clearer message); a non-NULL project that didn't resolve means it's |
no test coverage detected