Raise error with correct bug id
Bug id is always set for an object