diff options
| author | troido <troido@protonmail.com> | 2020-04-03 19:55:32 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-03 19:55:32 +0200 |
| commit | 4e4f8d2462262ec8326e9f3e5a25ed580d098159 (patch) | |
| tree | 99fe051e5509a7dbb5bd6ebd5feec005d3fbf41f /src/encyclopedia.rs | |
| parent | fd0bd24fa4e98b3bcd95a14ff844411727fb4433 (diff) | |
aerr! has formatting functionality; better errors; radishses -> radishes
Diffstat (limited to 'src/encyclopedia.rs')
| -rw-r--r-- | src/encyclopedia.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encyclopedia.rs b/src/encyclopedia.rs index 75302b8..4e09f22 100644 --- a/src/encyclopedia.rs +++ b/src/encyclopedia.rs @@ -26,7 +26,7 @@ impl Encyclopedia { } pub fn construct(&self, template: &Template) -> Result<PreEntity> { - let assemblage = self.items.get(&template.name).ok_or(aerr!("unknown assemblage name"))?; + let assemblage = self.items.get(&template.name).ok_or(aerr!("unknown assemblage name: '{:?}' in {:?}", template.name, template))?; assemblage.instantiate(template) } |
