From 7b7ab7b8ba223adf58d7603fb3b10cc9bb368c83 Mon Sep 17 00:00:00 2001 From: walon Date: Tue, 29 Mar 2022 00:44:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E6=A3=80?= =?UTF-8?q?=E6=9F=A5table.name=E5=92=8Cvalue=5Ftype=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E4=B8=BA=E7=A9=BA=E7=99=BD=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Luban.Job.Cfg/Source/Defs/CfgDefLoader.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Luban.Job.Cfg/Source/Defs/CfgDefLoader.cs b/src/Luban.Job.Cfg/Source/Defs/CfgDefLoader.cs index fd50996..47682d6 100644 --- a/src/Luban.Job.Cfg/Source/Defs/CfgDefLoader.cs +++ b/src/Luban.Job.Cfg/Source/Defs/CfgDefLoader.cs @@ -273,7 +273,14 @@ namespace Luban.Job.Cfg.Defs Tags = tags, OutputFile = outputFileName, }; - + if (string.IsNullOrWhiteSpace(name)) + { + throw new Exception($"定义文件:{defineFile} table:'{p.Name}' name:'{p.Name}' 不能为空"); + } + if (string.IsNullOrWhiteSpace(valueType)) + { + throw new Exception($"定义文件:{defineFile} table:'{p.Name}' value_type:'{valueType}' 不能为空"); + } if (p.Groups.Count == 0) { p.Groups = this._defaultGroups;