aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-04-14 17:25:39 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-04-14 17:25:39 +0200
commit3729df34da524e9f42ce86b83a762dd3da6f7384 (patch)
tree1299a0077bcd363ea1075eee02ab991d302b6676
parentc0c2cb871d09773dd586dcef78c6e47b93c97164 (diff)
Make Registry::read() more robust
-rw-r--r--src/libfetchers/registry.cc2
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;