From fd3b0e6e2d2a93e89de7d2576cd8e10dd82e10f2 Mon Sep 17 00:00:00 2001 From: Frederik Hjorslev Date: Sat, 1 Jun 2024 19:41:54 +0200 Subject: [PATCH] Change param validation to verbose output (#98) * Change param validation to warning * fix typo * more precise text * change warning to verbose output --- SteamPS/Public/Server/Update-SteamApp.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SteamPS/Public/Server/Update-SteamApp.ps1 b/SteamPS/Public/Server/Update-SteamApp.ps1 index 36ef4af..93b3508 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' @@ -70,7 +70,7 @@ function Update-SteamApp { )] [ValidateScript({ if ($null -eq (Get-SteamApp -ApplicationID $_)) { - throw "ApplicationID $_ couldn't be found." + Write-Verbose -Message "ApplicationID $_ couldn't be found using the Steam Web API. Continuing anyway as the application might exist." } $true })]