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. */
| 1198 | * entirely (no recognized key). Name the literal "project" key so the fix is |
| 1199 | * obvious (#640). Caller must free() result. */ |
| 1200 | static char *build_missing_project_error(void) { |
| 1201 | return heap_strdup("{\"error\":\"missing required argument: project\",\"hint\":\"Pass " |
| 1202 | "the project as the \\\"project\\\" argument, e.g. " |
| 1203 | "{\\\"project\\\":\\\"<name from list_projects>\\\"}. Run " |
| 1204 | "list_projects to see indexed projects.\"}"); |
| 1205 | } |
| 1206 | |
| 1207 | /* Pick the right no-store error: a NULL project means the argument was missing |
| 1208 | * (clearer message); a non-NULL project that didn't resolve means it's |
no test coverage detected