[Config] Change CT_NONE to CT_ERROR and handle end-of-file properly.