Add a pig script to export payload errors