Error collection and reporting for angular