Skip to content

script enhancements#278

Merged
YuliiaKovalova merged 14 commits intomainfrom
dev/ykovalova/enhancements
Jun 15, 2022
Merged

script enhancements#278
YuliiaKovalova merged 14 commits intomainfrom
dev/ykovalova/enhancements

Conversation

@YuliiaKovalova
Copy link
Copy Markdown
Member

@YuliiaKovalova YuliiaKovalova commented May 31, 2022

  • edit error message when quality and version both specified issue 247
  • extend successful installation message with version info issue 268
  • fix small grammar mistakes (install scripts dev doc)
  • fix the output message for a download timeout error issue 277

@YuliiaKovalova YuliiaKovalova force-pushed the dev/ykovalova/enhancements branch from d68c0f7 to 393d28f Compare May 31, 2022 14:00
@YuliiaKovalova YuliiaKovalova force-pushed the dev/ykovalova/enhancements branch from ef6b8a2 to e477b24 Compare June 1, 2022 11:01
Copy link
Copy Markdown
Member

@baronfel baronfel left a comment

Choose a reason for hiding this comment

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

For the timeout exit code work, what is the error code that's returned? Do you have sample output from testing that I can see? What I'm curious about is if the user has an exit-code-based way of detecting a script timeout error vs. any other kind of error.

}

if (![string]::IsNullOrEmpty($Version)) {
throw "Either Quality or Version option has to be specified. See https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#:~:text=valid%20for%20Windows.)-,%2DQuality%7C%2D%2Dquality%20%3CQUALITY%3E,-Downloads%20the%20latest for details."
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is useful, but I don't think this anchor-syntax is available on all browsers - I believe it is only supported on chromium-based browsers. Is there a 'normal' HTML anchor on this docs page that can be used instead? If not, can we modify/work with the docs team to add something more linkable?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I have found a better option, please take a look


if [ ! -z "$quality" ]; then
if [ ! -z "$version" ] ; then
say_err "Either Quality or Version option has to be specified. See https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#:~:text=valid%20for%20Windows.)-,%2DQuality%7C%2D%2Dquality%20%3CQUALITY%3E,-Downloads%20the%20latest for details."
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Similar question here as for the above.

@YuliiaKovalova
Copy link
Copy Markdown
Member Author

For the timeout exit code work, what is the error code that's returned? Do you have sample output from testing that I can see? What I'm curious about is if the user has an exit-code-based way of detecting a script timeout error vs. any other kind of error.

curl: (7) Failed to connect to dotnetcli.azureedge.net port 443: Connection timed out

or

https://kb.mailpoet.com/article/311-curl-issue-28-timeout#:~:text=cURL%20error%2028%3A%20Operation%20timed,any%20web%20software%20using%20cURL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants