make the plugin fail when there is an error while building dependency