Skip to content

Commit c39b329

Browse files
committed
Fixed private member access exception.
1 parent 66b9a90 commit c39b329

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Hassium/Runtime/InternalException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace Hassium.Runtime
44
{
55
public class InternalException : Exception
66
{
7-
public static string ATTRIBUTE_ACCESS = "Could not access private member {0} from {1}!";
7+
public static string ATTRIBUTE_ACCESS = "Could not access private member!";
88
public static string ATTRIBUTE_NOT_FOUND = "Could not find attribute {0} in {1}!";
99
public static string CONVERSION_ERROR = "Could not convert {0} to {1}!";
1010
public static string KEY_NOT_FOUND_ERROR = "Could not find key \"{0}\"!";

src/Hassium/Runtime/VirtualMachine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public HassiumObject ExecuteMethod(HassiumMethod method)
149149
if (attribute.IsPrivate)
150150
{
151151
if (method.Parent != val)
152-
throw new InternalException(this, InternalException.ATTRIBUTE_ACCESS, ((HassiumMethod)attribute).Name, attribute.Parent.Name);
152+
throw new InternalException(this, InternalException.ATTRIBUTE_ACCESS);
153153
}
154154
if (attribute is HassiumProperty)
155155
Stack.Push(((HassiumProperty)attribute).Get.Invoke(this));

0 commit comments

Comments
 (0)