factored out some common error messages to error objects that can be referenced

This commit is contained in:
2026-02-10 18:04:36 -07:00
parent cf5d4422ac
commit 38c4b3f71e
8 changed files with 42 additions and 24 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ func InviteSend(ctxt ui.AmContext) (string, any) {
if ctxt.FormFieldIsSet("cancel") {
return "redirect", backlink
} else if !ctxt.FormFieldIsSet("send") {
return "error", "invalid command"
return "error", EBUTTON
}
var comm *database.Community
if ctxt.FormFieldIsSet("cid") {
@@ -112,7 +112,7 @@ func InviteSend(ctxt ui.AmContext) (string, any) {
return "error", err
}
} else {
return "error", "no parameters specified"
return "error", EPARAM
}
mode := "community"
var conf *database.Conference = nil