From 59d8afca4f84ce913b971515f87aa8ba6ed718d7 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RTLN3BA\\$punk" Date: Tue, 3 Mar 2026 13:00:10 -0800 Subject: [PATCH] fix: enhance error handling in migrate-database.ps1 by implementing try-finally for Docker info command --- docker/scripts/migrate-database.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/scripts/migrate-database.ps1 b/docker/scripts/migrate-database.ps1 index c616a3f77..447d7463b 100644 --- a/docker/scripts/migrate-database.ps1 +++ b/docker/scripts/migrate-database.ps1 @@ -129,7 +129,12 @@ if (-not (Get-Command docker -ErrorAction SilentlyContinue)) { Write-Err "Docker is not installed. Install Docker Desktop: https://docs.docker.com/desktop/install/windows-install/" } -docker info *>$null +try { + $ErrorActionPreference = 'Continue' + docker info *>$null +} finally { + $ErrorActionPreference = 'Stop' +} if ($LASTEXITCODE -ne 0) { Write-Err "Docker daemon is not running. Please start Docker Desktop and try again." }