Use csserror for showing error messages in the browser

I pulled out the error message code into its own module. I need it for sass compilation, might as well reuse