doc: add error check to fs example
Previously, the err passed to the callback of fs.open() was not checked.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
doc