comparison m_config.c @ 8892:06843e67a04b

print meaningful error message
author arpi
date Sat, 11 Jan 2003 16:42:24 +0000
parents 9c784bd027ad
children e6a83b140b39
comparison
equal deleted inserted replaced
8891:5b73c925436e 8892:06843e67a04b
212 assert(config->lvl > 0); 212 assert(config->lvl > 0);
213 assert(arg != NULL); 213 assert(arg != NULL);
214 #endif 214 #endif
215 215
216 co = m_config_get_co(config,arg); 216 co = m_config_get_co(config,arg);
217 if(!co) 217 if(!co){
218 mp_msg(MSGT_CFGPARSER, MSGL_ERR,"Unknown option: %s\n",arg);
218 return M_OPT_UNKNOW; 219 return M_OPT_UNKNOW;
220 }
219 221
220 #ifdef MP_DEBUG 222 #ifdef MP_DEBUG
221 // This is the only mandatory function 223 // This is the only mandatory function
222 assert(co->opt->type->parse); 224 assert(co->opt->type->parse);
223 #endif 225 #endif