You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PLUGIN_PRINTF("Database", "Invalid database kind for \"%s\": %s.\n", connectionName, connection_details["kind"].c_str());
64
-
continue;
63
+
PLUGIN_PRINTF("Database", "Database kind %s used by \"%s\" doesn't have an extension. It will be registered but queries will not be executed.\n", connection_details["kind"].c_str(), connectionName);
PRINTF("Database connection \"%s\" doesn't exists inside the database configurations. Automatically falling back to \"default_connection\".\n", connection_name.c_str());
41
41
if (!shouldSkipDefaultConnection) db = g_dbManager.GetDatabase("default_connection");
42
42
}
43
43
44
-
if (!db) {
45
-
PRINTF("An error has occured while trying to connect to database \"%s\":\nError: Invalid connection inside `addons/swiftly/configs/databases.json`\n", connection_name.c_str());
46
-
}
47
-
elseif (!db->Connect()) {
44
+
if (!db->Connect()) {
48
45
PRINTF("An error has occured while trying to connect to database \"%s\":\nError: %s\n", connection_name.c_str(), db->GetError().c_str());
0 commit comments