Skip to content

Commit b69e7e0

Browse files
authored
Modified error log format of ScriptEngine.cs
- Lowercase "While" in error messages - Removed null check of `e.LoaderExceptions` - Removed printing all loaded types.
1 parent 0248672 commit b69e7e0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/ScriptEngine/ScriptEngine.cs

+2-5
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,10 @@ void LoadDLL(string path, GameObject obj)
9898
catch (ReflectionTypeLoadException e)
9999
{
100100
var sbMessage = new StringBuilder();
101-
sbMessage.AppendLine($"Error While loading {path}");
102-
sbMessage.AppendLine("-- Successfully Read Types --");
103-
foreach (var t in e.Types)
104-
if (t != null) sbMessage.AppendLine(t.ToString());
101+
sbMessage.AppendLine($"Error while loading {path}");
105102
sbMessage.AppendLine("\r\n-- LoaderExceptions --");
106103
foreach (var l in e.LoaderExceptions)
107-
if (l != null) sbMessage.AppendLine(l.ToString());
104+
sbMessage.AppendLine(l.ToString());
108105
sbMessage.AppendLine("\r\n-- StackTrace --");
109106
sbMessage.AppendLine(e.StackTrace);
110107
Logger.LogError(sbMessage.ToString());

0 commit comments

Comments
 (0)