Skip to content

Commit 8e657e8

Browse files
committed
Missed a file in the previous commit.
1 parent 5030e52 commit 8e657e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PhpSerializerNET/PhpDeserializer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private object MakeStruct(Type targetType, PhpSerializeToken token) {
208208
field.SetValue(result, this.DeserializeToken(field.FieldType, valueToken));
209209
} catch (Exception exception) {
210210
throw new DeserializationException(
211-
$"Exception encountered while trying to assign '{token.Value}' to {targetType.Name}.{field.Name}. See inner exception for details.",
211+
$"Exception encountered while trying to assign '{valueToken.Value}' to {targetType.Name}.{field.Name}. See inner exception for details.",
212212
exception
213213
);
214214
}
@@ -242,7 +242,7 @@ private object MakeObject(Type targetType, PhpSerializeToken token) {
242242
);
243243
} catch (Exception exception) {
244244
throw new DeserializationException(
245-
$"Exception encountered while trying to assign '{token.Value}' to {targetType.Name}.{property.Name}. See inner exception for details.",
245+
$"Exception encountered while trying to assign '{valueToken.Value}' to {targetType.Name}.{property.Name}. See inner exception for details.",
246246
exception
247247
);
248248
}
@@ -263,7 +263,7 @@ private object MakeList(Type targetType, PhpSerializeToken token) {
263263
if (token.Children[i].Type != PhpSerializerType.Integer) {
264264
throw new DeserializationException(
265265
$"Can not deserialize array at position {token.Position} to list: " +
266-
$"It has a non-integer key '{token.Value}' at element {i} (position {token.Children[i].Position})."
266+
$"It has a non-integer key '{token.Children[i].Value}' at element {i} (position {token.Children[i].Position})."
267267
);
268268
}
269269
}

0 commit comments

Comments
 (0)