modified error message for stray plain expression