added a failOnError option

This gives the option to the user of the plugin to just have the
warnings output to the console, rather than break the build. Useful for
existing projects where making it breaking might be too painful at the
outset.