mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
refactor: consolidate [x]TooLongErrors into StringTooLongError
This commit is contained in:
parent
b9d090d8cf
commit
bae883c11f
6 changed files with 15 additions and 15 deletions
|
|
@ -30,7 +30,7 @@ namespace PluralKit.Bot
|
|||
|
||||
var systemName = ctx.RemainderOrNull();
|
||||
if (systemName != null && systemName.Length > Limits.MaxSystemNameLength)
|
||||
throw Errors.SystemNameTooLongError(systemName.Length);
|
||||
throw Errors.StringTooLongError("System name", systemName.Length, Limits.MaxSystemNameLength);
|
||||
|
||||
var system = _db.Execute(async c =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue