From 3729df34da524e9f42ce86b83a762dd3da6f7384 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 14 Apr 2020 17:25:39 +0200 Subject: [PATCH] Make Registry::read() more robust --- src/libfetchers/registry.cc | 2 ++ 1 file changed, 2 insertions(+) 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::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;