This commit is contained in:
2025-11-28 15:24:25 +08:00
7 changed files with 122 additions and 40 deletions

View File

@@ -6,6 +6,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using UnityEngine;
using static Convention.RScript.RScriptContext;
namespace Convention.RScript
@@ -283,10 +284,12 @@ namespace Convention.RScript
}
catch (RScriptException)
{
Debug.LogError($"current sentence: {sentence}");
throw;
}
catch (Exception ex)
{
Debug.LogError($"current sentence: {sentence}");
throw new RScriptRuntimeException($"Runtime error: {ex.Message}", CurrentRuntimePointer, ex);
}
}