Add more information to BuildErrorException

This commit adds expected_status to BuildErrorException. This is helpful
for checking the error details.

Change-Id: I2979d39467daeb06793081b83e3a5b81b7d5623e
Closes-bug: #1265559
1 file changed