diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-04-14 17:25:39 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-04-14 17:25:39 +0200 |
commit | 3729df34da524e9f42ce86b83a762dd3da6f7384 (patch) | |
tree | 1299a0077bcd363ea1075eee02ab991d302b6676 | |
parent | c0c2cb871d09773dd586dcef78c6e47b93c97164 (diff) |
Make Registry::read() more robust
-rw-r--r-- | src/libfetchers/registry.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libfetchers/registry.cc b/src/libfetchers/registry.cc index 84f0fe4a2..77d3b3378 100644 --- a/src/libfetchers/registry.cc +++ b/src/libfetchers/registry.cc @@ -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; |