check of file contents in plugin and throw of error.