You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -54,8 +52,10 @@ export async function handleApiError(code: number) {
54
52
return'One of the options passed might be incorrect.'
55
53
}elseif(code===403){
56
54
return'You might be trying to access an organization that is not linked to the API key you are logged in with.'
55
+
}elseif(code===404){
56
+
return'The requested Socket API endpoint was not found (404). This could be a temporary problem caused by an incident or a bug in the CLI. If the problem persists please let us know.'
57
57
}else{
58
-
;`Server responded with status code ${code}`
58
+
return`Server responded with status code ${code}`
59
59
}
60
60
}
61
61
@@ -67,9 +67,13 @@ export function getLastFiveOfApiToken(token: string): string {
67
67
// The API server that should be used for operations.
0 commit comments