diff --git a/scripts/Common/Scripts/Operations.ps1 b/scripts/Common/Scripts/Operations.ps1
index 94c218be..47b722a1 100644
--- a/scripts/Common/Scripts/Operations.ps1
+++ b/scripts/Common/Scripts/Operations.ps1
@@ -141,7 +141,10 @@ $null = New-Module {
         if (Test-Path $errorPath) {
             $errorMessage = Get-Content $errorPath;
             Remove-Item $errorPath;
-            Write-Error $errorMessage;
+
+            if ($errorMessage) {
+                Write-Error $errorMessage;
+            }
         }
     }