export writeError