CXX-237 insert "op" field for write errors