Pirates sink Blues in error-riddled clash