Make Registry::read() more robust

This commit is contained in:
Eelco Dolstra 2020-04-14 17:25:39 +02:00
parent c0c2cb871d
commit 3729df34da

View file

@ -60,6 +60,8 @@ std::shared_ptr<Registry> Registry::read(
} catch (nlohmann::json::exception & e) {
warn("cannot parse flake registry '%s': %s", path, e.what());
} catch (Error & e) {
warn("cannot read flake registry '%s': %s", path, e.what());
}
return registry;