mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Make Registry::read() more robust
This commit is contained in:
parent
c0c2cb871d
commit
3729df34da
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,8 @@ std::shared_ptr<Registry> Registry::read(
|
||||||
|
|
||||||
} catch (nlohmann::json::exception & e) {
|
} catch (nlohmann::json::exception & e) {
|
||||||
warn("cannot parse flake registry '%s': %s", path, e.what());
|
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;
|
return registry;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue