Skip to content

Commit

Permalink
[eas-cli] Add link to SDK upgrade page for SDK-gated command error (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wschurman authored Oct 31, 2023
1 parent 2600805 commit f8cfa00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ This is the log of notable changes to EAS CLI and related packages.

### 🧹 Chores

- Add link to SDK upgrade page for SDK-gated command error. ([#2106](https://github.com/expo/eas-cli/pull/2106) by [@wschurman](https://github.com/wschurman))

## [5.6.0](https://github.com/expo/eas-cli/releases/tag/v5.6.0) - 2023-10-27

### 🎉 New features
Expand Down
6 changes: 4 additions & 2 deletions packages/eas-cli/src/project/projectUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getEASUpdateURL } from '../api';
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
import { AccountFragment, AppPrivacy } from '../graphql/generated';
import { AppQuery } from '../graphql/queries/AppQuery';
import Log from '../log';
import Log, { learnMore } from '../log';
import { Actor } from '../user/User';
import { expoCommandAsync } from '../utils/expoCli';

Expand Down Expand Up @@ -122,7 +122,9 @@ export async function enforceRollBackToEmbeddedUpdateSupportAsync(
}

throw new Error(
'The expo-updates package must have a version >= 0.19.0 to use roll back to embedded, which corresponds to Expo SDK 50 or greater.'
`The expo-updates package must have a version >= 0.19.0 to use roll back to embedded, which corresponds to Expo SDK 50 or greater. ${learnMore(
'https://docs.expo.dev/workflow/upgrading-expo-sdk-walkthrough/'
)}`
);
}

Expand Down

0 comments on commit f8cfa00

Please sign in to comment.