fixed error handling of angel api