mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 02:39:05 +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
|
||||
public CreatorSession parseCreatorSession(GroupId contactGroupId,
|
||||
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),
|
||||
getLastLocalMessageId(d), getLastRemoteMessageId(d),
|
||||
getLocalTimestamp(d), getInviteTimestamp(d),
|
||||
|
||||
Reference in New Issue
Block a user