Изменения

уточнение
Строка 733: Строка 733:  
params = params or {}
 
params = params or {}
 
if not txtDateIn then  
 
if not txtDateIn then  
status.errorText = tCon(errors.start,errors.no_data,errors.ending)
+
status.errorText = errors.no_data
 
status.errorCat = category.no_parameters
 
status.errorCat = category.no_parameters
 
status.brk = true
 
status.brk = true
Строка 745: Строка 745:  
    -- заменить сообщения об ошибках на списочные
 
    -- заменить сообщения об ошибках на списочные
 
    if not (type(date.year) == 'number') then  
 
    if not (type(date.year) == 'number') then  
    status.errorText = tCon{
+
    status.errorText = tCon{"Не удалось распознать год. Данные: ", unwarp(date), "; ", txtDateIn}
    "<span class=error>Не удалось распознать год. Данные: ", unwarp(date),  
  −
    "; ", txtDateIn ,"</span>"}
   
    status.errorCat = category.incomplete_parameters
 
    status.errorCat = category.incomplete_parameters
 
    status.brk = true
 
    status.brk = true
 
    end
 
    end
 
    if not (1 <= date.month and date.month <= 12) then  
 
    if not (1 <= date.month and date.month <= 12) then  
    status.errorText = tCon{
+
    status.errorText = tCon{"Не удалось распознать месяц. Данные: ", unwarp(date), "; ", txtDateIn}  
    "<span class=error>Не удалось распознать месяц. Данные: ", unwarp(date),  
  −
    "; ", txtDateIn, "</span>"}  
   
    status.errorCat = category.incomplete_parameters
 
    status.errorCat = category.incomplete_parameters
 
    status.brk = true
 
    status.brk = true
Строка 761: Строка 757:  
    strFormat = trim(string.gsub(string.gsub(strFormat,"xg","F"),"[dDjlNwzW]",""))
 
    strFormat = trim(string.gsub(string.gsub(strFormat,"xg","F"),"[dDjlNwzW]",""))
 
    elseif not (1 <= date.day and date.day <= month_end_day(date.month,date.year)) then  
 
    elseif not (1 <= date.day and date.day <= month_end_day(date.month,date.year)) then  
        status.errorText = tCon{"<span class=error>Не удалось распознать день. Данные: ",
+
        status.errorText = tCon{"Не удалось распознать день. Данные: ", unwarp(date), "; ", txtDateIn}
        unwarp(date), "; ", txtDateIn, "</span>"}
   
        status.errorCat = category.incomplete_parameters
 
        status.errorCat = category.incomplete_parameters
 
    status.brk = true
 
    status.brk = true
Анонимный участник