More logical handling of return values

This commit is contained in:
2018-11-16 14:11:27 +01:00
parent 62f31ef0d3
commit 62ad100aee
3 changed files with 17 additions and 11 deletions

View File

@@ -51,6 +51,8 @@ namespace Ycicle
else
{
var evaluate = parsed.Evaluate();
if (evaluate == null)
continue;
if (parsed.Diagnostics.Messages.Count > 0)
{
Console.ForegroundColor = ConsoleColor.Red;