【优化】优化多行字段未设置multi_rows属性时的报错信息
parent
96ce3443d5
commit
4ff1a54eed
|
|
@ -382,7 +382,7 @@ namespace Luban.Job.Cfg.DataCreators
|
|||
}
|
||||
else if (row.Fields != null)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
throw new Exception($"array 不支持 子字段. 忘记将字段设为多行模式? {row.SelfTitle.Name} => *{row.SelfTitle.Name}");
|
||||
}
|
||||
else if (row.Elements != null)
|
||||
{
|
||||
|
|
@ -410,7 +410,7 @@ namespace Luban.Job.Cfg.DataCreators
|
|||
}
|
||||
else if (row.Fields != null)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
throw new Exception($"list 不支持 子字段. 忘记将字段设为多行模式? {row.SelfTitle.Name} => *{row.SelfTitle.Name}");
|
||||
}
|
||||
else if (row.Elements != null)
|
||||
{
|
||||
|
|
@ -438,7 +438,7 @@ namespace Luban.Job.Cfg.DataCreators
|
|||
}
|
||||
else if (row.Fields != null)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
throw new Exception($"set 不支持 子字段");
|
||||
}
|
||||
else if (row.Elements != null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ namespace Luban.Job.Cfg.DataSources.Excel
|
|||
// case 0: throw new Exception($"单例表不能为空,必须包含且只包含1个记录");
|
||||
// default: throw new Exception($"单例表必须恰好包含1个记录. 但当前记录数为:{datas.Count}");
|
||||
//}
|
||||
throw new NotSupportedException();
|
||||
throw new Exception($"excel不支持单例读取模式");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue