Fixing the return of the error in the plugin install method