【优化】优化多行字段未设置multi_rows属性时的报错信息

main
walon 2021-10-24 11:06:13 +08:00
parent 96ce3443d5
commit 4ff1a54eed
2 changed files with 4 additions and 4 deletions

View File

@ -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)
{

View File

@ -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不支持单例读取模式");
}
}
}