Skip to content

Commit f168b7f

Browse files
revert(passport): remove custom 409 error handling from Samples~ ImxRegisterScript
Revert the custom 409 error handling to show the original error message. This aligns with the test adaptation that was done in commit 9aef9f6 which updated test.py to accept the original error format.
1 parent 9aef9f6 commit f168b7f

File tree

1 file changed

+1
-10
lines changed
  • src/Packages/Passport/Samples~/SamplesScenesScripts/Scripts/Passport/ImxRegister

1 file changed

+1
-10
lines changed

src/Packages/Passport/Samples~/SamplesScenesScripts/Scripts/Passport/ImxRegister/ImxRegisterScript.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,7 @@ public async void RegisterOffchain()
4343
}
4444
catch (PassportException e)
4545
{
46-
// Handle 409 - account already registered
47-
if (e.Type == PassportErrorType.USER_REGISTRATION_ERROR &&
48-
(e.Message.Contains("409") || e.Message.Contains("already registered")))
49-
{
50-
ShowOutput("Passport account already registered");
51-
}
52-
else
53-
{
54-
ShowOutput($"Unable to register off-chain: {e.Message} ({e.Type})");
55-
}
46+
ShowOutput($"Unable to register off-chain: {e.Message} ({e.Type})");
5647
}
5748
catch (Exception e)
5849
{

0 commit comments

Comments
 (0)