From 2150f4afb92ed7c1d8b3c1ef85b22e320ceff376 Mon Sep 17 00:00:00 2001 From: Frederik Hjorslev Date: Sat, 1 Jun 2024 09:59:04 +0200 Subject: [PATCH 1/4] Change param validation to warning --- SteamPS/Public/Server/Update-SteamApp.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SteamPS/Public/Server/Update-SteamApp.ps1 b/SteamPS/Public/Server/Update-SteamApp.ps1 index 36ef4af..e001f49 100644 --- a/SteamPS/Public/Server/Update-SteamApp.ps1 +++ b/SteamPS/Public/Server/Update-SteamApp.ps1 @@ -70,7 +70,7 @@ function Update-SteamApp { )] [ValidateScript({ if ($null -eq (Get-SteamApp -ApplicationID $_)) { - throw "ApplicationID $_ couldn't be found." + Write-Warning -Message "ApplicationID $_ couldn't be found in the Steam application list. Continuing anyway as the application might exist." } $true })] From ff3db667d538272cc3493d7477fcd0809e7b467c Mon Sep 17 00:00:00 2001 From: Frederik Hjorslev Date: Sat, 1 Jun 2024 14:00:54 +0200 Subject: [PATCH 2/4] fix typo --- SteamPS/Public/Server/Update-SteamApp.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SteamPS/Public/Server/Update-SteamApp.ps1 b/SteamPS/Public/Server/Update-SteamApp.ps1 index e001f49..d31a42b 100644 --- a/SteamPS/Public/Server/Update-SteamApp.ps1 +++ b/SteamPS/Public/Server/Update-SteamApp.ps1 @@ -34,7 +34,7 @@ function Update-SteamApp { .EXAMPLE Update-SteamApp -ApplicationName 'Arma 3' -Credential 'Toby' -Path 'C:\DedicatedServers\Arma3' - Because there are multiple hits when searching for Arma 3, the user will be promoted to select the right application. + Because there are multiple hits when searching for Arma 3, the user will be promted to select the right application. .EXAMPLE Update-SteamApp -AppID 376030 -Path 'C:\DedicatedServers\ARK-SurvivalEvolved' From e4413d20a0efe4a774e499a0924a0bbdee309d6f Mon Sep 17 00:00:00 2001 From: Frederik Hjorslev Date: Sat, 1 Jun 2024 17:20:34 +0200 Subject: [PATCH 3/4] more precise text --- SteamPS/Public/Server/Update-SteamApp.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SteamPS/Public/Server/Update-SteamApp.ps1 b/SteamPS/Public/Server/Update-SteamApp.ps1 index d31a42b..77b15e4 100644 --- a/SteamPS/Public/Server/Update-SteamApp.ps1 +++ b/SteamPS/Public/Server/Update-SteamApp.ps1 @@ -70,7 +70,7 @@ function Update-SteamApp { )] [ValidateScript({ if ($null -eq (Get-SteamApp -ApplicationID $_)) { - Write-Warning -Message "ApplicationID $_ couldn't be found in the Steam application list. Continuing anyway as the application might exist." + Write-Warning -Message "ApplicationID $_ couldn't be found using the Steam Web API. Continuing anyway as the application might exist." } $true })] From 32d4e5e65f44e1e15728eb9cda4126949932378d Mon Sep 17 00:00:00 2001 From: Frederik Hjorslev Date: Sat, 1 Jun 2024 19:13:46 +0200 Subject: [PATCH 4/4] change warning to verbose output --- SteamPS/Public/Server/Update-SteamApp.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SteamPS/Public/Server/Update-SteamApp.ps1 b/SteamPS/Public/Server/Update-SteamApp.ps1 index 77b15e4..93b3508 100644 --- a/SteamPS/Public/Server/Update-SteamApp.ps1 +++ b/SteamPS/Public/Server/Update-SteamApp.ps1 @@ -70,7 +70,7 @@ function Update-SteamApp { )] [ValidateScript({ if ($null -eq (Get-SteamApp -ApplicationID $_)) { - Write-Warning -Message "ApplicationID $_ couldn't be found using the Steam Web API. Continuing anyway as the application might exist." + Write-Verbose -Message "ApplicationID $_ couldn't be found using the Steam Web API. Continuing anyway as the application might exist." } $true })]