From e46306432ddb75a89f69d92ccc175a23f0b72072 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 25 Jul 2015 14:19:28 -0700 Subject: 1848 - core instructions now check for ingredients Also standardized warnings. --- 045space_surround.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '045space_surround.cc') diff --git a/045space_surround.cc b/045space_surround.cc index b90d464f..1ab41c91 100644 --- a/045space_surround.cc +++ b/045space_surround.cc @@ -41,7 +41,8 @@ long long int space_base(const reagent& x, long long int space_index, long long long long int space_index(const reagent& x) { for (long long int i = /*skip name:type*/1; i < SIZE(x.properties); ++i) { if (x.properties.at(i).first == "space") { - assert(SIZE(x.properties.at(i).second) == 1); + if (SIZE(x.properties.at(i).second) != 1) + raise << current_recipe_name() << ": /space metadata should take exactly one value in " << x.original_string << '\n' << end(); return to_integer(x.properties.at(i).second.at(0)); } } -- cgit 1.4.1-2-gfad0