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

Nuget.exe push needs a helpful error message for timeout #2199

Closed
dagood opened this issue Feb 26, 2016 · 0 comments
Closed

Nuget.exe push needs a helpful error message for timeout #2199

dagood opened this issue Feb 26, 2016 · 0 comments
Assignees
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Functionality:Push Platform:Xplat Product:NuGet.exe NuGet.exe
Milestone

Comments

@dagood
Copy link

dagood commented Feb 26, 2016

Using NuGet.exe 3.4.0.665, when I do a NuGet push that hits the default 5 minute timeout I get the following error:

A task was canceled.

Adding the -verbosity Detailed argument, I get this:

System.AggregateException: One or more errors occurred. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at NuGet.CommandLine.Command.Execute()
at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)

---> (Inner Exception #0) System.Threading.Tasks.TaskCanceledException: A task was canceled.<---

Upgrading from 3.4.0.335 to 3.4.0.665, I didn't know about the -timeout argument so I had to notice that the push was failing at the 5 minute mark then figure out why that would be. This error message should be made clearer and mention the -timeout argument.

/cc @weshaggard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Functionality:Push Platform:Xplat Product:NuGet.exe NuGet.exe
Projects
None yet
Development

No branches or pull requests

5 participants