FormError
This commit is contained in:
parent
39f008758b
commit
a90e584790
4 changed files with 38 additions and 14 deletions
|
@ -7,7 +7,7 @@ import { getapiurls, getBulkInfo, setTheme } from "./login.js";
|
|||
import { SnowFlake } from "./snowflake.js";
|
||||
import { Message } from "./message.js";
|
||||
import { Member } from "./member.js";
|
||||
import { Settings } from "./settings.js";
|
||||
import { FormError, Settings } from "./settings.js";
|
||||
import { MarkDown } from "./markdown.js";
|
||||
const wsCodesRetry = new Set([4000, 4003, 4005, 4007, 4008, 4009]);
|
||||
class Localuser {
|
||||
|
@ -1045,7 +1045,7 @@ class Localuser {
|
|||
return in1;
|
||||
}
|
||||
else {
|
||||
throw [copy, "Passwords don't match"];
|
||||
throw new FormError(copy, "Passwords don't match");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue