Browse Source

fix: GetTabUp/SetTabUp error message

Akeit0 6 months ago
parent
commit
1ec185cb62
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Lua/Exceptions.cs

+ 1 - 1
src/Lua/Exceptions.cs

@@ -200,7 +200,7 @@ public class LuaRuntimeException : Exception, ILuaTracebackBuildable
         var luaValue = closure.UpValues[upValue.Index].GetValue();
         var name = upValue.Name;
 
-        throw new LuaRuntimeException(thread, $"attempt to {op} a {luaValue.TypeToString()} value (global '{name}')");
+        throw new LuaRuntimeException(thread, $"attempt to {op} a {luaValue.TypeToString()} value (upvalue '{name}')");
     }
 
     internal static (string NameWhat, string Name) GetCurrentFunctionName(LuaThread thread)