Do not rewrite errcode if it is set