Skip to content

Commit

Permalink
(log) How to skip automated script actions
Browse files Browse the repository at this point in the history
Give the user a better message when they choose not to run the
automated scripts, so they know there is a path forward for installing
without running the automated scripts.
  • Loading branch information
ferventcoder committed Jun 10, 2015
1 parent 81146c7 commit 22c8b75
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -234,7 +234,7 @@ public bool run_action(ChocolateyConfiguration configuration, PackageResult pack
if (selection.is_equal_to("no"))
{
Environment.ExitCode = 1;
packageResult.Messages.Add(new ResultMessage(ResultType.Error, "User cancelled powershell portion of installation for '{0}'.{1} Use skip to install without run.".format_with(powershellScript.FirstOrDefault(), Environment.NewLine)));
packageResult.Messages.Add(new ResultMessage(ResultType.Error, "User cancelled powershell portion of installation for '{0}'.{1} Specify -n to skip automated script actions.".format_with(powershellScript.FirstOrDefault(), Environment.NewLine)));
}
}

Expand Down

0 comments on commit 22c8b75

Please sign in to comment.