Skip to content

Commit 82342a6

Browse files
committed
Rename [settings] to [variables]
1 parent 1d95fab commit 82342a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/project_parser.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,12 @@ Project::Project(const Project *parent, const std::string &path, bool build) : p
320320
}
321321

322322
if (checker.contains("settings")) {
323+
throw std::runtime_error(format_key_error("[settings] has been renamed to [variables]", "", toml.at("settings")));
324+
}
325+
326+
if (checker.contains("variables")) {
323327
using set_map = tsl::ordered_map<std::string, TomlBasicValue>;
324-
const auto &sets = toml::find<set_map>(toml, "settings");
328+
const auto &sets = toml::find<set_map>(toml, "variables");
325329
for (const auto &itr : sets) {
326330
Setting s;
327331
s.name = itr.first;

0 commit comments

Comments
 (0)