diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-11-15 17:34:13 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-11-15 17:34:13 -0800 |
commit | 1361f5ce5aa68c2243d8319abcbb1d71f4bc7e04 (patch) | |
tree | 2e62b97ba8c6e9a788ad66ff0848d0eb0599c1c3 /059shape_shifting_recipe.cc | |
parent | c1123445f7061a8922f792d22b12daa4cd2874db (diff) | |
download | mu-1361f5ce5aa68c2243d8319abcbb1d71f4bc7e04.tar.gz |
2449
Diffstat (limited to '059shape_shifting_recipe.cc')
-rw-r--r-- | 059shape_shifting_recipe.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/059shape_shifting_recipe.cc b/059shape_shifting_recipe.cc index 97914aaa..beb6b2e6 100644 --- a/059shape_shifting_recipe.cc +++ b/059shape_shifting_recipe.cc @@ -271,6 +271,7 @@ void accumulate_type_ingredients(const reagent& exemplar_reagent, reagent& refin void accumulate_type_ingredients(const string_tree* exemplar_type, const string_tree* refinement_type, map<string, const string_tree*>& mappings, const recipe& exemplar, const reagent& exemplar_reagent, const instruction& call_instruction, const recipe& caller_recipe, bool* error) { if (!exemplar_type) return; if (!refinement_type) { + // todo: make this smarter; only warn if exemplar_type contains some *new* type ingredient raise_error << maybe(exemplar.name) << "missing type ingredient in " << exemplar_reagent.original_string << '\n' << end(); return; } |