File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Assets/BossRoom/Scripts/Client/UI Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,15 @@ void ServiceErrorHandler(UnityServiceErrorMessage error)
27
27
var errorMessage = error . Message ;
28
28
if ( error . AffectedService == UnityServiceErrorMessage . Service . Lobby )
29
29
{
30
- if ( ( error . OriginalException as LobbyServiceException ) . Reason == LobbyExceptionReason . LobbyConflict )
30
+ if ( error . OriginalException is LobbyServiceException lobbyServiceException )
31
31
{
32
- // LobbyConflict can have multiple causes. Let's add other solutions here if there's other situations that arise for this.
33
- errorMessage += "\n See logs for possible causes and solution." ;
34
- Debug . LogError ( $ "Got service error { error . Message } with LobbyConflict. Possible conflict cause: Trying to play with two builds on the " +
35
- $ "same machine. Please use command line arg '{ ClientMainMenuState . AuthProfileCommandLineArg } someName' to set a different auth profile.\n ") ;
32
+ if ( lobbyServiceException . Reason == LobbyExceptionReason . LobbyConflict )
33
+ {
34
+ // LobbyConflict can have multiple causes. Let's add other solutions here if there's other situations that arise for this.
35
+ errorMessage += "\n See logs for possible causes and solution." ;
36
+ Debug . LogError ( $ "Got service error { error . Message } with LobbyConflict. Possible conflict cause: Trying to play with two builds on the " +
37
+ $ "same machine. Please use command line arg '{ ClientMainMenuState . AuthProfileCommandLineArg } someName' to set a different auth profile.\n ") ;
38
+ }
36
39
}
37
40
}
38
41
You can’t perform that action at this time.
0 commit comments