Fix failing build via using ok() and err() in read