Make Registry::read() more robust
This commit is contained in:
parent
c0c2cb871d
commit
3729df34da
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue