{"record":{"id":"1a9d289922365851","repo":"multica-ai/multica","slug":"url-cannot-be-empty","errorCode":null,"errorMessage":"--url cannot be empty","messagePattern":"--url cannot be empty","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_project.go","lineNumber":825,"sourceCode":"\t\tref := map[string]any{}\n\t\t// Seed from the existing row so a `--default-branch-hint` edit doesn't\n\t\t// clobber the `url` (server overwrites resource_ref wholesale).\n\t\tif existingRef != nil {\n\t\t\tif u, ok := existingRef[\"url\"].(string); ok && strings.TrimSpace(u) != \"\" {\n\t\t\t\tref[\"url\"] = strings.TrimSpace(u)\n\t\t\t}\n\t\t\tif h, ok := existingRef[\"default_branch_hint\"].(string); ok && strings.TrimSpace(h) != \"\" {\n\t\t\t\tref[\"default_branch_hint\"] = strings.TrimSpace(h)\n\t\t\t}\n\t\t\tif checkoutRef, ok := existingRef[\"ref\"].(string); ok && strings.TrimSpace(checkoutRef) != \"\" {\n\t\t\t\tref[\"ref\"] = strings.TrimSpace(checkoutRef)\n\t\t\t}\n\t\t}\n\t\tif urlSet {\n\t\t\turlVal, _ := cmd.Flags().GetString(\"url\")\n\t\t\turlVal = strings.TrimSpace(urlVal)\n\t\t\tif urlVal == \"\" {\n\t\t\t\treturn nil, false, fmt.Errorf(\"--url cannot be empty\")\n\t\t\t}\n\t\t\tref[\"url\"] = urlVal\n\t\t}\n\t\tif hintSet {\n\t\t\thint := strings.TrimSpace(mustString(cmd, \"default-branch-hint\"))\n\t\t\tif hint == \"\" {\n\t\t\t\tdelete(ref, \"default_branch_hint\")\n\t\t\t} else {\n\t\t\t\tref[\"default_branch_hint\"] = hint\n\t\t\t}\n\t\t}\n\t\tif refSet {\n\t\t\tcheckoutRef := strings.TrimSpace(mustString(cmd, \"ref\"))\n\t\t\tif checkoutRef == \"\" {\n\t\t\t\tdelete(ref, \"ref\")\n\t\t\t} else {\n\t\t\t\tref[\"ref\"] = checkoutRef\n\t\t\t}","sourceCodeStart":807,"sourceCodeEnd":843,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_project.go#L807-L843","documentation":"Error \"--url cannot be empty\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_project.go:825 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a non-empty --url value."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}