Browse Source

improve: enhance error message for LuaCancelledException

Akeit0 7 months ago
parent
commit
0d72037f21
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Lua/Exceptions.cs

+ 1 - 1
src/Lua/Exceptions.cs

@@ -274,7 +274,7 @@ public sealed class LuaCancelledException : OperationCanceledException, ILuaTrac
 
     internal LuaThread? Thread { get; private set; }
 
-    internal LuaCancelledException(LuaThread thread, CancellationToken cancellationToken, Exception? innerException = null) : base("operation canceled in Lua", innerException, cancellationToken)
+    internal LuaCancelledException(LuaThread thread, CancellationToken cancellationToken, Exception? innerException = null) : base("The operation was cancelled during execution on Lua.", innerException, cancellationToken)
     {
         thread.CurrentException?.BuildOrGet();
         thread.ExceptionTrace.Clear();