finish implementing the modular object format #3

Open
sel wants to merge 8 commits from connections into main
Showing only changes of commit 9e2a19d56e - Show all commits

View file

@ -18,7 +18,7 @@ impl ObjectTemplate {
let template: ObjectTemplate = match modules.get(object_type) {
Some(ModuleItem::Template(template_str)) => toml::from_str(template_str).unwrap(),
Some(_) => panic!("{} is not a ModuleItem::Template", object_type),
None => return Err(format!("template {} doesn't exist", object_type))
None => return Err(format!("ModuleItem {} doesn't exist", object_type))
};
Ok(template)