Add a trailing newline.
Also check that the config was able to be read.
This commit is contained in:
parent
a7fe1feb10
commit
ffc8837269
2 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ std::map<std::string, std::string> installed_addons_and_versions()
|
|||
} else if(filesystem::file_exists(get_info_file_path(addon_id))) {
|
||||
config temp;
|
||||
get_addon_install_info(addon_id, temp);
|
||||
addons[addon_id] = temp.child("info")["version"].str();
|
||||
addons[addon_id] = !temp.empty() ? temp.child("info")["version"].str() : "Unknown";
|
||||
} else {
|
||||
addons[addon_id] = "Unknown";
|
||||
}
|
||||
|
|
|
@ -503,7 +503,7 @@ std::string full_build_report()
|
|||
o << addon_info.first << " : " << addon_info.second << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
o << '\n';
|
||||
return o.str();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue