expectErrorOf draft