add filecheck callback errorCode