From c156209238ddc623938bbd0bee8d9295539d8cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jare=C5=A1?= Date: Wed, 10 Apr 2024 23:13:04 +0200 Subject: [PATCH] Format because --- src/functions/Set-ItResult.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/Set-ItResult.ps1 b/src/functions/Set-ItResult.ps1 index 6371eebc1..1d3e97a04 100644 --- a/src/functions/Set-ItResult.ps1 +++ b/src/functions/Set-ItResult.ps1 @@ -94,7 +94,7 @@ } if ($Because) { - [String]$message += ", because $Because" + [String]$message += ", because $(Format-Because $Because)" } throw [Pester.Factory]::CreateErrorRecord(