Skip to content

Commit

Permalink
fix parameter order
Browse files Browse the repository at this point in the history
  • Loading branch information
mbdavid committed Jul 31, 2016
1 parent af36d48 commit 10122f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LiteDB/Serializer/Mapper/BsonMapper.Serialize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public BsonDocument ToDocument<T>(T entity)

internal BsonValue Serialize(Type type, object obj, int depth)
{
if (++depth > MAX_DEPTH) throw LiteException.DocumentMaxDepth(type, MAX_DEPTH);
if (++depth > MAX_DEPTH) throw LiteException.DocumentMaxDepth(MAX_DEPTH, type);

if (obj == null) return BsonValue.Null;

Expand Down

0 comments on commit 10122f5

Please sign in to comment.