fix #225 Improve compiler error for attributes with missing quotes

Close #307