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 } }