Set private writer for #error