check for sync gateway errors too