Add error to createfile.