From 0f41700354ac684d27c84845886b3bca0de08919 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Wed, 16 Aug 2017 11:27:24 +0200 Subject: [PATCH] fix exception state --- src/ChallengeFile/Set-ChallengeFile.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChallengeFile/Set-ChallengeFile.ps1 b/src/ChallengeFile/Set-ChallengeFile.ps1 index 7024daa..926c3f5 100644 --- a/src/ChallengeFile/Set-ChallengeFile.ps1 +++ b/src/ChallengeFile/Set-ChallengeFile.ps1 @@ -67,6 +67,6 @@ Function Set-ChallengeFile() { [io.file]::WriteAllBytes($Path, $Keys) } catch { - $_.Exception | Format-List -Force | Out-String | Write-ErrorErrorAction Stop + $_.Exception | Format-List -Force | Out-String | Write-Error -ErrorAction Stop } }