mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Merge branch '1483-crash-logging' into 'master'
Log the role we find when failing to parse creator session See merge request briar/briar!1225
This commit is contained in:
@@ -71,7 +71,10 @@ class SessionParserImpl implements SessionParser {
|
|||||||
@Override
|
@Override
|
||||||
public CreatorSession parseCreatorSession(GroupId contactGroupId,
|
public CreatorSession parseCreatorSession(GroupId contactGroupId,
|
||||||
BdfDictionary d) throws FormatException {
|
BdfDictionary d) throws FormatException {
|
||||||
if (getRole(d) != CREATOR) throw new IllegalArgumentException();
|
if (getRole(d) != CREATOR) {
|
||||||
|
throw new IllegalArgumentException(
|
||||||
|
"Expected creator, but found " + getRole(d).name());
|
||||||
|
}
|
||||||
return new CreatorSession(contactGroupId, getPrivateGroupId(d),
|
return new CreatorSession(contactGroupId, getPrivateGroupId(d),
|
||||||
getLastLocalMessageId(d), getLastRemoteMessageId(d),
|
getLastLocalMessageId(d), getLastRemoteMessageId(d),
|
||||||
getLocalTimestamp(d), getInviteTimestamp(d),
|
getLocalTimestamp(d), getInviteTimestamp(d),
|
||||||
|
|||||||
Reference in New Issue
Block a user