diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-19 15:48:44 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-19 15:48:44 -0400 |
commit | c7cffa36ad963ea8a70c522ae9f3d93037711979 (patch) | |
tree | 6788eb2ae1b3af020a73815954eb0ce3c673b08b /src/compare.cc | |
parent | 26ddb8343cdd0585e5ac6594c0d03e8ac34782fa (diff) | |
download | fork-ledger-c7cffa36ad963ea8a70c522ae9f3d93037711979.tar.gz fork-ledger-c7cffa36ad963ea8a70c522ae9f3d93037711979.tar.bz2 fork-ledger-c7cffa36ad963ea8a70c522ae9f3d93037711979.zip |
If a sorting value can't be found, report an error
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"); } } } |