(err: ImportTokenError, codeUrl: string)
| 60 | }; |
| 61 | } |
| 62 | function 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 | } |
| 74 | type Step = { |
| 75 | name: 'checking'; |
| 76 | } | { |
no outgoing calls
no test coverage detected