fix missing error code in vrepio call