Skip to content

Commit

Permalink
Qt: Allow to build without exceptions enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Mar 4, 2022
1 parent d91d314 commit b9763d5
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 b9763d5

Please sign in to comment.