update error code for compile function