diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-07-25 14:19:28 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-07-25 17:14:58 -0700 |
commit | e46306432ddb75a89f69d92ccc175a23f0b72072 (patch) | |
tree | 48ed3828064f29cefaf14e3fe61d7dc02cac0e80 /045space_surround.cc | |
parent | e83602d3917eba137cd8fb37605076fff5a746b1 (diff) | |
download | mu-e46306432ddb75a89f69d92ccc175a23f0b72072.tar.gz |
1848 - core instructions now check for ingredients
Also standardized warnings.
Diffstat (limited to '045space_surround.cc')
-rw-r--r-- | 045space_surround.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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)); } } |