Fixed an issue with the Runner not showing the correct label of the block being processed.

This commit is contained in:
ruri
2019-05-10 07:34:32 +02:00
parent c83cf8ec2b
commit d4ba3ec187
2 changed files with 24 additions and 3 deletions
+3 -3
View File
@@ -703,7 +703,7 @@ namespace RuriLib.Runner
// Output the label of the current block being processed
if (Settings.General.BotsDisplayMode == BotsDisplayMode.Everything)
bot.Status = "<<< PROCESSING BLOCK: " + loli.CurrentBlock + " >>>";
bot.Status = "<<< PROCESSING BLOCK: " + loli.NextBlock + " >>>";
// Try to take a step in the LoliScript and output any errors
try
@@ -713,8 +713,8 @@ namespace RuriLib.Runner
catch (BlockProcessingException ex)
{
if (Settings.General.BotsDisplayMode == BotsDisplayMode.Everything)
bot.Status = $"<<< ERROR IN BLOCK: {loli.CurrentBlock} >>>";
RaiseMessageArrived(LogLevel.Error, $"[{bot.Id}][{bot.Data}][{proxyUsedText}] ERROR in block {loli.CurrentBlock} | Exception: {ex.Message}", false);
bot.Status = $"<<< ERROR IN BLOCK: {loli.NextBlock} >>>";
RaiseMessageArrived(LogLevel.Error, $"[{bot.Id}][{bot.Data}][{proxyUsedText}] ERROR in block {loli.NextBlock} | Exception: {ex.Message}", false);
Thread.Sleep(1000);
}
catch (Exception ex)