@@ -67,15 +67,15 @@ public async UniTask<string> TeleportToRealmAsync(string realm, CancellationToke
6767
6868 return error . State switch
6969 {
70- ChangeRealmError . MessageError => $ "🔴 Teleport was not fully successful to { realm } world!",
71- ChangeRealmError . NotReachable => $ "🔴 Error: The world { realm } doesn't exist or not reachable!",
72- ChangeRealmError . ChangeCancelled => "🔴 Error: The operation was canceled!" ,
73- ChangeRealmError . LocalSceneDevelopmentBlocked => "🔴 Error: Realm changes are not allowed in local scene development mode" ,
74- ChangeRealmError . UnauthorizedWorldAccess => "🔴 Error: User is not authorized to access the requested world" ,
75- ChangeRealmError . Timeout => "🔴 Error: We were unable to connect to the realm. Please verify your connection." ,
76- ChangeRealmError . PasswordRequired => $ "🔴 Error: The world { realm } requires a password to access",
77- ChangeRealmError . PasswordCancelled => "🟡 Password entry was cancelled" ,
78- ChangeRealmError . WhitelistAccessDenied => $ "🔴 Error: You are not on the access list for { realm } ",
70+ ChangeRealmError . MESSAGE_ERROR => $ "🔴 Teleport was not fully successful to { realm } world!",
71+ ChangeRealmError . NOT_REACHABLE => $ "🔴 Error: The world { realm } doesn't exist or not reachable!",
72+ ChangeRealmError . CHANGE_CANCELLED => "🔴 Error: The operation was canceled!" ,
73+ ChangeRealmError . LOCAL_SCENE_DEVELOPMENT_BLOCKED => "🔴 Error: Realm changes are not allowed in local scene development mode" ,
74+ ChangeRealmError . UNAUTHORIZED_WORLD_ACCESS => "🔴 Error: User is not authorized to access the requested world" ,
75+ ChangeRealmError . TIMEOUT => "🔴 Error: We were unable to connect to the realm. Please verify your connection." ,
76+ ChangeRealmError . PASSWORD_REQUIRED => $ "🔴 Error: The world { realm } requires a password to access",
77+ ChangeRealmError . PASSWORD_CANCELLED => "🟡 Password entry was cancelled" ,
78+ ChangeRealmError . WHITELIST_ACCESS_DENIED => $ "🔴 Error: You are not on the access list for { realm } ",
7979 _ => throw new ArgumentOutOfRangeException ( )
8080 } ;
8181 }
@@ -102,12 +102,12 @@ public async UniTask<string> TeleportToRealmAsync(string realm, Vector2Int targe
102102
103103 return error . State switch
104104 {
105- ChangeRealmError . MessageError => $ "🔴 Teleport was not fully successful to { realm } world!",
106- ChangeRealmError . NotReachable => $ "🔴 Error: The world { realm } doesn't exist or not reachable!",
107- ChangeRealmError . ChangeCancelled => "🔴 Error: The operation was canceled!" ,
108- ChangeRealmError . LocalSceneDevelopmentBlocked => "🔴 Error: Realm changes are not allowed in local scene development mode" ,
109- ChangeRealmError . UnauthorizedWorldAccess => "🔴 Error: User is not authorized to access the requested world" ,
110- ChangeRealmError . Timeout => "🔴 Error: We were unable to connect to the realm. Please verify your connection." ,
105+ ChangeRealmError . MESSAGE_ERROR => $ "🔴 Teleport was not fully successful to { realm } world!",
106+ ChangeRealmError . NOT_REACHABLE => $ "🔴 Error: The world { realm } doesn't exist or not reachable!",
107+ ChangeRealmError . CHANGE_CANCELLED => "🔴 Error: The operation was canceled!" ,
108+ ChangeRealmError . LOCAL_SCENE_DEVELOPMENT_BLOCKED => "🔴 Error: Realm changes are not allowed in local scene development mode" ,
109+ ChangeRealmError . UNAUTHORIZED_WORLD_ACCESS => "🔴 Error: User is not authorized to access the requested world" ,
110+ ChangeRealmError . TIMEOUT => "🔴 Error: We were unable to connect to the realm. Please verify your connection." ,
111111 _ => throw new ArgumentOutOfRangeException ( )
112112 } ;
113113 }
@@ -119,7 +119,7 @@ private bool ValidEnvironment(URLDomain realmURL, out string errorMessage)
119119
120120 if ( ! environmentValidationResult . Success )
121121 {
122- errorMessage = environmentValidationResult . ErrorMessage ;
122+ errorMessage = environmentValidationResult . ErrorMessage ! ;
123123 return false ;
124124 }
125125
0 commit comments