Skip to content

Commit 05f1345

Browse files
scorteanucosminMrBlue
authored andcommitted
Update extra data string instead of being an object since it's only used for errors
1 parent 6321563 commit 05f1345

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/CompilerService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,19 +369,19 @@ private void OnMessageReceived(CompilerMessage message)
369369
}
370370
case MessageType.Error:
371371
{
372-
Exception exception = (Exception)message.ExtraData;
372+
string exception = message.ExtraData;
373373
Compilation compilation = _compilations[message.Id];
374374
_compilations.Remove(message.Id);
375375

376376
if (compilation == null)
377377
{
378-
Interface.Oxide.LogException("Compiler returned a error for a untracked compilation", exception);
378+
Interface.Oxide.LogError($"Compiler returned a error for a untracked compilation: {exception}");
379379
return;
380380
}
381381

382382
foreach (CompilablePlugin p in compilation.plugins)
383383
{
384-
p.CompilerErrors = exception.Message;
384+
p.CompilerErrors = exception;
385385
}
386386

387387
compilation.Completed();

0 commit comments

Comments
 (0)