diff --git a/src/olympic/keel/src/pack.cpp b/src/olympic/keel/src/pack.cpp index 68dabdcd..2f27e31f 100644 --- a/src/olympic/keel/src/pack.cpp +++ b/src/olympic/keel/src/pack.cpp @@ -14,15 +14,15 @@ namespace keel { static ox::Error pathToInode( keel::Context &ctx, ox::FileSystem &dest, ox::ModelObject &obj) noexcept { auto &o = obj; - auto type = static_cast(o["type"].get()); - auto &data = o["data"].get(); + auto type = static_cast(o.at("type").unwrap()->get()); + auto &data = o.at("data").unwrap()->get(); ox::String path; switch (type) { case ox::FileAddressType::Path: - path = data["path"].get(); + path = data.at("path").unwrap()->get(); break; case ox::FileAddressType::ConstPath: - path = data["constPath"].get(); + path = data.at("constPath").unwrap()->get(); break; case ox::FileAddressType::Inode: case ox::FileAddressType::None: @@ -33,7 +33,7 @@ static ox::Error pathToInode( oxReturnError(keel::uuidToPath(ctx, uuid).moveTo(path)); } oxRequire(s, dest.stat(path)); - oxReturnError(o["type"].set(static_cast(ox::FileAddressType::Inode))); + oxReturnError(o.at("type").unwrap()->set(static_cast(ox::FileAddressType::Inode))); oxOutf("path to inode: {} => {}\n", path, s.inode); return data.set(2, s.inode); }