Skip to content

Commit

Permalink
improve PackageList() error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nshaheed committed May 4, 2024
1 parent 0ae7590 commit e65f10a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/package_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PackageList::PackageList(string filepath, string operating_system) {

// TODO better error checks
if (!f.good()) {
std::cout << "BADBADBAD" << std::endl;
std::cerr << "Unable to open Package List \"" << filepath << "\"" << std::endl;
}

json data = json::parse(f);
Expand All @@ -22,7 +22,6 @@ PackageList::PackageList(string filepath, string operating_system) {
json j_packages = data["packages"];

for (auto& j_package : j_packages) {
// std::cout << j_package << '\n';
Package p = j_package.get<Package>();

packages.push_back(p);
Expand Down

0 comments on commit e65f10a

Please sign in to comment.