Ignore:
Timestamp:
Jun 6, 2006 5:04:30 PM (18 years ago)
Author:
bennylp
Message:

More information in error reporting on parsing error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_parser.c

    r184 r491  
    265265     * Syntax error exception number. 
    266266     */ 
    267     status = pj_exception_id_alloc("PJSIP: syntax error",  
     267    status = pj_exception_id_alloc("PJSIP syntax error",  
    268268                                   &PJSIP_SYN_ERR_EXCEPTION); 
    269269    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
     
    910910            err_info->except_code = PJ_GET_EXCEPTION(); 
    911911            err_info->line = scanner->line; 
    912             err_info->col = pj_scan_get_col(scanner); 
     912            /* Scanner's column is zero based, so add 1 */ 
     913            err_info->col = pj_scan_get_col(scanner) + 1; 
    913914            if (parsing_headers) 
    914915                err_info->hname = hname; 
Note: See TracChangeset for help on using the changeset viewer.