stage1 os: handle errors from read/write

not sure why the CI is complaining about these now and not in master
branch. but this is a slight code improvement anyway
364a284eb3Andrew Kelley committed on 2/17/2020, 2:35:12 AMparenta26800c
1 file changedLine totals unavailable