소스 검색

script: more error messages on EOF

Andrei Pelinescu-Onciul 17 년 전
부모
커밋
ea6f7be177
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. 15 0
      cfg.lex

+ 15 - 0
cfg.lex

@@ -911,6 +911,21 @@ EAT_ABLE	[\ \t\b\r]
 											LOG(L_CRIT, "ERROR: unexpected EOF:"
 														"comment line open\n");
 											break;
+										case  ATTR_S:
+											LOG(L_CRIT, "ERROR: unexpected EOF"
+													" while parsing"
+													" avp name\n");
+											break;
+										case PVAR_P_S: 
+											LOG(L_CRIT, "ERROR: unexpected EOF"
+													" while parsing pvar name"
+													" (%d paranthesis open)\n",
+													p_nest);
+											break;
+										case AVP_PVAR_S:
+											LOG(L_CRIT, "ERROR: unexpected EOF"
+													" while parsing"
+													" avp or pvar name\n");
 									}
 									return 0;
 								}