added error messaging on bad haml