mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 00:06:16 +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…
Reference in a new issue