diff options
Diffstat (limited to 'src/compare.cc')
-rw-r--r-- | src/compare.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compare.cc b/src/compare.cc index 5237fb9a..6b0cbe0d 100644 --- a/src/compare.cc +++ b/src/compare.cc @@ -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"); } } } |