The writeError takes a code argument which is no longer used. Remove it for clarity.
Attach a file by drag & drop or click to upload