If a sorting value can't be found, report an error
This commit is contained in:
parent
26ddb8343c
commit
c7cffa36ad
1 changed files with 3 additions and 0 deletions
|
|
@ -54,6 +54,9 @@ namespace {
|
||||||
sort_values.push_back(sort_value_t());
|
sort_values.push_back(sort_value_t());
|
||||||
sort_values.back().inverted = inverted;
|
sort_values.back().inverted = inverted;
|
||||||
sort_values.back().value = expr_t(node).calc(*scope).reduced();
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue