Skip to content

Commit

Permalink
chore: rephrase error message [gh-824]
Browse files Browse the repository at this point in the history
  • Loading branch information
Nahuel Alejandro Ramos committed Aug 14, 2023
1 parent da47555 commit cc47ad3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/rest/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export function requestInterceptor (config: InternalAxiosRequestConfig) {

export function responseErrorInterceptor (error: any) {
if (error.response?.status === 408) {
throw new Error('Encountered an error connecting to Checkly. Your Internet connection is too slow.')
throw new Error('Encountered an error connecting to Checkly. ' +
'This can be triggered by a slow internet connection or a network with high packet loss.')
}
throw error
}
Expand Down

0 comments on commit cc47ad3

Please sign in to comment.