asdf-erlang icon indicating copy to clipboard operation
asdf-erlang copied to clipboard

Misleading message when host cannot be resolved

Open eksperimental opened this issue 5 years ago • 3 comments

My connection was temporarily gone, and I got this message.

$ asdf install erlang 18.3.4.11
fatal: unable to access 'https://github.com/erlang/otp/': Could not resolve host: github.com
asdf_18.3.4.11 is not a kerl-managed Erlang/OTP installation
The asdf_18.3.4.11 build has been deleted
18.3.4.11 is not a valid Erlang/OTP release

I am not sure whether asdf_18.3.4.11 as been deleted

eksperimental avatar Jun 26 '20 18:06 eksperimental

@eksperimental I think I have fixed at least part of this issue with https://github.com/asdf-vm/asdf-erlang/pull/185.

With the scenario you shared above, what would you expect/desire the output to be?

Stratus3D avatar Aug 05 '21 22:08 Stratus3D

@eksperimental I think I have fixed at least part of this issue with #185.

With the scenario you shared above, what would you expect/desire the output to be?

not to include this:

asdf_18.3.4.11 is not a kerl-managed Erlang/OTP installation
The asdf_18.3.4.11 build has been deleted
18.3.4.11 is not a valid Erlang/OTP release

since such statement is not true.

eksperimental avatar Aug 05 '21 22:08 eksperimental

I believe I've addressed that in the PR I just merged. When an error is encountered the script should stop and no additional output will be printed after the error.

Stratus3D avatar Aug 06 '21 13:08 Stratus3D