ethdev: modify flow API error function