- Fixed arguments type in writeError