Skip to content

Commit 20c51bb

Browse files
authored
Johnphamous/eng-1210-cli-should-convey-kyckyb-info (#85)
* feat: Add 403 error handling for SF Compute account review status * release: v0.1.58 * chore: Bump package version to v0.1.58
1 parent 6d35b45 commit 20c51bb

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@
4848
"peerDependencies": {
4949
"typescript": "^5.6.2"
5050
},
51-
"version": "0.1.57"
52-
}
51+
"version": "0.1.58"
52+
}

src/lib/me.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,18 @@ export async function getLoggedInAccountId(tokenOverride?: string) {
3636
Authorization: `Bearer ${token}`,
3737
},
3838
});
39+
3940
if (!response.ok) {
4041
if (response.status === 401) {
4142
logSessionTokenExpiredAndQuit();
4243
}
4344

45+
if (response.status === 403) {
46+
logAndQuit(
47+
"Your SF Compute account is still under review. You cannot use the CLI until your account is approved.\n\nIf you have any questions you can reach out to [email protected]",
48+
);
49+
}
50+
4451
logAndQuit("Failed to fetch account info");
4552
}
4653

0 commit comments

Comments
 (0)