mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-23 07:33:52 -06:00
Fix: Improve error message
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
38fab198bb
commit
f70b971810
@ -190,7 +190,7 @@ class Database {
|
||||
};
|
||||
} else if (dbConfig.type === "mariadb") {
|
||||
if (!/^\w+$/.test(dbConfig.dbName)) {
|
||||
throw Error("Invalid Database name");
|
||||
throw Error("Invalid database name. A database name can only consist of letters, numbers and underscores");
|
||||
}
|
||||
|
||||
const connection = await mysql.createConnection({
|
||||
|
Loading…
Reference in New Issue
Block a user