Skip to content

Commit

Permalink
Merge pull request #35 from owncloud/work/no_throw
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Mar 4, 2022
2 parents d91d314 + b9763d5 commit 3471dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/cpp-qt-client/ServerConfiguration.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public:
QString value = serverVariable._defaultValue;
if (!serverVariable._enumValues.empty() && !serverVariable._enumValues.contains(value)) {
throw std::runtime_error(QString("The variable " + name + " in the server URL has invalid value " + value + ".").toUtf8());
qFatal("The variable %s in the server URL has invalid value %s.", qPrintable(name), qPrintable(value));
}
QRegularExpression regex(QString("\\{" + name + "\\}"));
url = url.replace(regex, value);
Expand Down

0 comments on commit 3471dbb

Please sign in to comment.