MCPcopy
hub / github.com/codeaashu/claude-code / errorMessage

Function errorMessage

src/commands/remote-setup/remote-setup.tsx:62–73  ·  view source on GitHub ↗
(err: ImportTokenError, codeUrl: string)

Source from the content-addressed store, hash-verified

60 };
61}
62function errorMessage(err: ImportTokenError, codeUrl: string): string {
63 switch (err.kind) {
64 case 'not_signed_in':
65 return `Login failed. Please visit ${codeUrl} and login using the GitHub App`;
66 case 'invalid_token':
67 return 'GitHub rejected that token. Run `gh auth login` and try again.';
68 case 'server':
69 return `Server error (${err.status}). Try again in a moment.`;
70 case 'network':
71 return "Couldn't reach the server. Check your connection.";
72 }
73}
74type Step = {
75 name: 'checking';
76} | {

Callers 15

handleConfirmFunction · 0.70
DesktopHandoffFunction · 0.50
MCPRemoteServerMenuFunction · 0.50
MCPStdioServerMenuFunction · 0.50
PromptInputFunction · 0.50
handleTeleportFunction · 0.50
submitTranscriptShareFunction · 0.50
runFunction · 0.50
startDetachedPollFunction · 0.50
launchDetachedFunction · 0.50
applyChangesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected