multica-ai/multica · error
email is required
Error message
email is required
What it means
Error "email is required" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_workspace.go:830
headers := []string{"USER ID", "NAME", "EMAIL", "ROLE"}
rows := make([][]string, 0, len(members))
for _, m := range members {
rows = append(rows, []string{
strVal(m, "user_id"),
strVal(m, "name"),
strVal(m, "email"),
strVal(m, "role"),
})
}
cli.PrintTable(os.Stdout, headers, rows)
return nil
}
func runWorkspaceMemberInvite(cmd *cobra.Command, args []string) error {
email := strings.ToLower(strings.TrimSpace(args[0]))
if email == "" {
return fmt.Errorf("email is required")
}
// Validate the role client-side to fail fast with a clear message; the
// server enforces the same rule (normalizeMemberRole rejects unknown roles
// and CreateInvitation refuses owner). Keep the accepted set in sync.
role, _ := cmd.Flags().GetString("role")
role = strings.ToLower(strings.TrimSpace(role))
if role == "" {
role = "member"
}
switch role {
case "member", "admin":
case "owner":
return fmt.Errorf("cannot invite as owner; use --role member or --role admin")
default:
return fmt.Errorf("invalid --role %q; expected member or admin", role)
}
View on GitHub (pinned to 2c0912b6ec)
Solutions
- Provide the email address of the member to invite.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_workspace.go:830 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/a6d2bf1f3d48e994.
Report an issue: GitHub.