Skip to content

Commit

Permalink
Show errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vbfox committed Oct 15, 2016
1 parent ab2bbc7 commit 4394c6c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Paket.Bootstrapper/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,15 @@ static void OnSuccessfulDownload(BootstrapperOptions options)
if (options.Run && File.Exists(options.DownloadArguments.Target))
{
Console.CancelKeyPress -= CancelKeyPressed;
var exitCode = ConsoleRunner.Run(options.DownloadArguments.Target, options.RunArgs);
Environment.Exit(exitCode);
try
{
var exitCode = ConsoleRunner.Run(options.DownloadArguments.Target, options.RunArgs);
Environment.Exit(exitCode);
}
catch (Exception e)
{
ConsoleImpl.WriteError("Running paket failed with: {0}", e.Message);
}
}
}

Expand Down

0 comments on commit 4394c6c

Please sign in to comment.