Skip to content

Conversation

fhammerschmidt
Copy link
Member

@fhammerschmidt fhammerschmidt commented May 8, 2024

Fixes #51

@fhammerschmidt fhammerschmidt requested a review from cknitt May 8, 2024 12:38
NpmRegistry.getPackageVersions("rescript", rescriptVersionRange),
NpmRegistry.getPackageVersions("@rescript/core", rescriptCoreVersionRange),
)) catch {
| _exn => Error.make("Fetching versions from registry failed.")->Error.raise
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to raise the error here (and not inside getPackageVersions) so that the message shows up nicely formatted in the prompt

@fhammerschmidt fhammerschmidt merged commit 68c602a into rescript-lang:master May 14, 2024
@fhammerschmidt fhammerschmidt deleted the no-npm-view branch May 14, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants