diff --git a/file-cache.hh b/file-cache.hh index e589d88..8b1dfde 100644 --- a/file-cache.hh +++ b/file-cache.hh @@ -140,7 +140,7 @@ public: throw Error("NAR index for ā€˜%sā€™ has an unsupported version", storePath); recurse("", ls.at("root")); - } catch (std::invalid_argument & e) { + } catch (json::parse_error & e) { // FIXME: some filenames have non-UTF8 characters in them, // which is not supported by nlohmann::json. So we have to // skip the entire package.