#263 - added friendly error message when invalid clause is provided