Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-FtpFile error when file is missing (called through Get-ChocolateyWebFile) #920

Closed
ComFreek opened this issue Aug 22, 2016 · 1 comment

Comments

@ComFreek
Copy link
Contributor

What You Are Seeing?

A syntax error when using Get-ChocolateyWebFile and the server responds with an error code (e.g. 550 in my case):

'env:DownloadCacheAvailable' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.

What is Expected?

No syntax error :)

How Did You Get This To Happen? (Steps to Reproduce)

  1. Call Get-ChocolateyWebFile with a missing file on the server
@ferventcoder ferventcoder changed the title Syntax error occurs when Get-ChocolateyWebFile throws an error Get-FtpFile error when file is missing (called through Get-ChocolateyWebFile) Aug 22, 2016
andmos added a commit to andmos/choco that referenced this issue Aug 24, 2016
Some times the title of the package must be presented to the user in a
"pretty" matter. The Package Id helps, but is not "GUI-friendly".
To avoid the need to parse the Id ourselves, this adds the access to the
package title as an environment variable.
@ferventcoder ferventcoder added this to the 0.10.1 milestone Sep 12, 2016
@ferventcoder ferventcoder self-assigned this Sep 12, 2016
ferventcoder pushed a commit that referenced this issue Sep 12, 2016
In case an error occurs (e.g. server responds with 404) and
Get-FtpFile's catch clause is reached, the syntax
error is reached.
ferventcoder added a commit that referenced this issue Sep 12, 2016
* pr921:
  (GH-920) Fix missing $ in Get-FtpFile
ferventcoder added a commit that referenced this issue Sep 12, 2016
* stable:
  (GH-925) Make package title available to $env
  (GH-920) Fix missing $ in Get-FtpFile
@ferventcoder
Copy link
Member

Will be released in 0.10.1.

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

No branches or pull requests

3 participants