Skip to content

Commit e32a659

Browse files
committed
change wording on error output
1 parent eee4978 commit e32a659

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/cli-kit/src/private/node/session/device-authorization.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('requestDeviceAuthorization', () => {
7373

7474
// When/Then
7575
await expect(requestDeviceAuthorization(['scope1', 'scope2'])).rejects.toThrow(
76-
'Received unexpected response. This may be a service outage. Please try again later.',
76+
'Received unexpected response from the authorization service. If this issue persists, please contact support at https://help.shopify.com',
7777
)
7878
})
7979

@@ -86,7 +86,7 @@ describe('requestDeviceAuthorization', () => {
8686

8787
// When/Then
8888
await expect(requestDeviceAuthorization(['scope1', 'scope2'])).rejects.toThrow(
89-
'Received unexpected response. This may be a service outage. Please try again later.',
89+
'Received unexpected response from the authorization service. If this issue persists, please contact support at https://help.shopify.com',
9090
)
9191
})
9292
})

packages/cli-kit/src/private/node/session/device-authorization.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ export async function requestDeviceAuthorization(scopes: string[]): Promise<Devi
4545
try {
4646
jsonResult = await response.json()
4747
} catch (error) {
48-
throw new BugError('Received unexpected response. This may be a service outage. Please try again later.')
48+
throw new BugError(
49+
'Received unexpected response from the authorization service. If this issue persists, please contact support at https://help.shopify.com',
50+
)
4951
}
5052

5153
outputDebug(outputContent`Received device authorization code: ${outputToken.json(jsonResult)}`)

0 commit comments

Comments
 (0)