If a sorting value can't be found, report an error

This commit is contained in:
John Wiegley 2009-02-19 15:48:44 -04:00
parent 26ddb8343c
commit c7cffa36ad

View file

@ -54,6 +54,9 @@ namespace {
sort_values.push_back(sort_value_t());
sort_values.back().inverted = inverted;
sort_values.back().value = expr_t(node).calc(*scope).reduced();
if (sort_values.back().value.is_null())
throw calc_error("Could not determine sorting value based an expression");
}
}
}