small fixes

a typo, using ongoing tx instead of making a new one, don't pass literal string
to formatting function.

found while working on quota support.
This commit is contained in:
Mechiel Lukkien
2023-12-16 11:53:14 +01:00
parent dfddf0e874
commit e048d0962b
3 changed files with 3 additions and 3 deletions

View File

@ -1150,7 +1150,7 @@ func xcheckmailboxname(name string, allowInbox bool) string {
if isinbox {
xuserErrorf("special mailboxname Inbox not allowed")
} else if err != nil {
xusercodeErrorf("CANNOT", err.Error())
xusercodeErrorf("CANNOT", "%s", err)
}
return name
}