Skip to content

Commit 4f69e00

Browse files
committed
[tool] ReflectionTypeLoadException 예외에 대한 상세 내용 출력하도록 수정
1 parent 3e514c8 commit 4f69e00

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tools/Ntreev.Crema.ConsoleHost/Program.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using System.Collections.Generic;
2121
using System.Diagnostics;
2222
using System.Linq;
23+
using System.Reflection;
2324
using System.Text;
2425
using System.Threading.Tasks;
2526

@@ -37,6 +38,14 @@ static void Main(string[] args)
3738
commandContext.VerifyName = false;
3839
commandContext.Execute(Environment.CommandLine);
3940
}
41+
catch(ReflectionTypeLoadException e)
42+
{
43+
Console.WriteLine(e);
44+
foreach(var exception in e.LoaderExceptions)
45+
{
46+
Console.WriteLine(exception);
47+
}
48+
}
4049
catch (Exception e)
4150
{
4251
Console.WriteLine(e.Message);

0 commit comments

Comments
 (0)