properly pass in error value for locally installed plugin