throw syntax error instead of non-scalar assert.