rhodes: generate error if file is not exists and opened in read mode