Pre: Make it easier to debug binding errors.

This commit is contained in:
Nick Alexander 2017-04-26 15:17:02 -07:00 committed by Richard Newman
parent 002c918c96
commit 2f38f1e73e

View file

@ -164,7 +164,7 @@ fn candidate_column(query: &AlgebraicQuery, var: &Variable) -> (ColumnOrExpressi
let columns = query.cc let columns = query.cc
.column_bindings .column_bindings
.get(var) .get(var)
.expect("Every variable has a binding"); .expect(format!("Every variable should have a binding, but {:?} does not", var).as_str());
let qa = columns[0].clone(); let qa = columns[0].clone();
let name = VariableColumn::Variable(var.clone()).column_name(); let name = VariableColumn::Variable(var.clone()).column_name();