From 54d4f15c757754fade8e1115366e799fb2b7b84e Mon Sep 17 00:00:00 2001 From: Jason Axelson Date: Thu, 15 Jun 2023 03:45:32 -1000 Subject: [PATCH] Link to the Elixir/Erlang compatibility page (#209) * Link to the elixir/erlang compatibility page Currently when a user encounters an incompatibility between the requested elixir and erlang versions it isn't clear how to figure out what the compatible versions are. This is the current error as shown to users: > Error: Requested Elixir / Erlang/OTP version (1.11.3 / 24.2) not found in version list (did you check Compatibility between Elixir and Erlang/OTP?) Example failure: https://github.com/ScenicFramework/scenic/pull/318/checks This PR adds a link to https://hexdocs.pm/elixir/compatibility-and-deprecations.html so user's can easily see what versions are compatible. * Update dist/index.js * Act on review comment: on > at --------- Co-authored-by: Paulo F. Oliveira --- dist/index.js | 3 ++- src/setup-beam.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 65d5353..b9198cb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -10081,7 +10081,8 @@ async function getElixirVersion(exSpec0, otpVersion0, hexMirrors) { } else { throw new Error( `Requested Elixir / Erlang/OTP version (${exSpec0} / ${otpVersion0}) not ` + - 'found in version list (did you check Compatibility between Elixir and Erlang/OTP?)', + 'found in version list (did you check Compatibility between Elixir and Erlang/OTP?).' + + 'Elixir and Erlang/OTP compatibility can be found at: https://hexdocs.pm/elixir/compatibility-and-deprecations.html', ) } diff --git a/src/setup-beam.js b/src/setup-beam.js index dd988e8..7125a2f 100644 --- a/src/setup-beam.js +++ b/src/setup-beam.js @@ -209,7 +209,8 @@ async function getElixirVersion(exSpec0, otpVersion0, hexMirrors) { } else { throw new Error( `Requested Elixir / Erlang/OTP version (${exSpec0} / ${otpVersion0}) not ` + - 'found in version list (did you check Compatibility between Elixir and Erlang/OTP?)', + 'found in version list (did you check Compatibility between Elixir and Erlang/OTP?).' + + 'Elixir and Erlang/OTP compatibility can be found on: https://hexdocs.pm/elixir/compatibility-and-deprecations.html', ) }