Skip to content

Commit

Permalink
APIs: Fix Config/SetDatabaseCredentials
Browse files Browse the repository at this point in the history
Api will return false if connection parameters are wrong,
rather than a 500 error. 500 errors should only be for
unexpected problems.
  • Loading branch information
bennettpeter committed May 5, 2023
1 parent bf6b885 commit 3312779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/programs/mythbackend/servicesv2/v2config.cpp
Expand Up @@ -60,7 +60,7 @@ bool V2Config::SetDatabaseCredentials(const QString &Host, const QString &UserNa
port = Port;

if (DoTest && !TestDatabase(Host, UserName, Password, db, port))
throw( QString( "Database test failed. Not saving database connection information." ));
return false;

DatabaseParams dbparms;
dbparms.m_dbName = db;
Expand Down

0 comments on commit 3312779

Please sign in to comment.