From b1bea831de464a302b7a5f5aebb542212753dcaf Mon Sep 17 00:00:00 2001 From: Curtis Shmyr Date: Sat, 29 Oct 2016 13:56:01 -0600 Subject: [PATCH] Fix Lua error message for WPos subtraction --- OpenRA.Game/WPos.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/WPos.cs b/OpenRA.Game/WPos.cs index 6ea08e0b78..6edeca4e2a 100644 --- a/OpenRA.Game/WPos.cs +++ b/OpenRA.Game/WPos.cs @@ -95,7 +95,7 @@ namespace OpenRA WPos a; var rightType = right.WrappedClrType(); if (!left.TryGetClrValue(out a)) - throw new LuaException("Attempted to call WPos.Subtract(WPos, WVec) with invalid arguments ({0}, {1})".F(left.WrappedClrType().Name, rightType)); + throw new LuaException("Attempted to call WPos.Subtract(WPos, (WPos|WVec)) with invalid arguments ({0}, {1})".F(left.WrappedClrType().Name, rightType.Name)); if (rightType == typeof(WPos)) { @@ -110,7 +110,7 @@ namespace OpenRA return new LuaCustomClrObject(a - b); } - throw new LuaException("Attempted to call WPos.Subtract(WPos, WVec) with invalid arguments ({0}, {1})".F(left.WrappedClrType().Name, rightType)); + throw new LuaException("Attempted to call WPos.Subtract(WPos, (WPos|WVec)) with invalid arguments ({0}, {1})".F(left.WrappedClrType().Name, rightType.Name)); } public LuaValue Equals(LuaRuntime runtime, LuaValue left, LuaValue right)