From bde0904821adfbf8a505fa78711565884f325496 Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 3 Jun 2024 14:08:02 +0200 Subject: [PATCH] - fixed powershell error messages --- .../Nox.Cli.Plugin.Powershell/PowershellScript_v1.cs | 2 +- src/Nox.Cli/Properties/launchSettings.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Nox.Cli.Plugins/Nox.Cli.Plugin.Powershell/PowershellScript_v1.cs b/src/Nox.Cli.Plugins/Nox.Cli.Plugin.Powershell/PowershellScript_v1.cs index 51c55d0..96a262d 100755 --- a/src/Nox.Cli.Plugins/Nox.Cli.Plugin.Powershell/PowershellScript_v1.cs +++ b/src/Nox.Cli.Plugins/Nox.Cli.Plugin.Powershell/PowershellScript_v1.cs @@ -75,7 +75,7 @@ public Task> ProcessAsync(INoxWorkflowContext ctx) var errorMessage = ""; foreach (var err in _pwsh.Streams.Error) { - errorMessage += err.ErrorDetails.Message + Environment.NewLine; + errorMessage += err + Environment.NewLine; } ctx.SetErrorMessage(errorMessage); } else if (results.Any(r => (r.ToString() ?? "").Contains("error", StringComparison.OrdinalIgnoreCase))) diff --git a/src/Nox.Cli/Properties/launchSettings.json b/src/Nox.Cli/Properties/launchSettings.json index 2fa440c..6a01085 100755 --- a/src/Nox.Cli/Properties/launchSettings.json +++ b/src/Nox.Cli/Properties/launchSettings.json @@ -2,8 +2,8 @@ "profiles": { "Nox.Cli": { "commandName": "Project", - "commandLineArgs": "sync chart --offline", - "workingDirectory": "/home/jan/Projects/IWG/Fno.MultiDeploy/src/Ingena.Fno.MultiDeploy.Api", + "commandLineArgs": "sync vc --offline", + "workingDirectory": "/home/jan/Projects/IWG/Fno.MultiDeploy", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }