Merge "Add error handling and other improvements to Bugreporting API"