Skip to content

Commit 8662bb2

Browse files
committed
fix: display appropriate error message on account status failure outside of unauthorized access
1 parent c3d7b66 commit 8662bb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/thirdweb/src/wallets/in-app/core/actions/get-enclave-user-status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function getUserStatus({
3737
return undefined;
3838
}
3939
const result = await response.json();
40-
throw new Error(`Failed to get user status: ${result.error}`);
40+
throw new Error(`Failed to get user status: ${result.message}`);
4141
}
4242

4343
return (await response.json()) as UserStatus;

0 commit comments

Comments
 (0)