From 15f9bbec9704345801a6c9e2e3194bd368546288 Mon Sep 17 00:00:00 2001 From: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Date: Fri, 6 Oct 2023 14:51:45 +0530 Subject: [PATCH] fix(update): Change error message to a better instruction (#5677) * fix(update): Change error message to a better instruction * Update CHANGELOG.md --- CHANGELOG.md | 1 + libexec/scoop-update.ps1 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d60402c9eb..bc390b4cb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ - **scoop-virustotal:** Fix `scoop-virustotal` when `--all` has been passed without app ([#5593](https://github.com/ScoopInstaller/Scoop/pull/5593)) - **scoop-checkup:** Change the message level of helpers from ERROR to WARN ([#5549](https://github.com/ScoopInstaller/Scoop/issues/5614)) - **scoop-(un)hold:** Correct output the messages when manifest not found, (already|not) held ([#5519](https://github.com/ScoopInstaller/Scoop/issues/5519)) +- **scoop-update:** Change error message to a better instruction ([#5677](https://github.com/ScoopInstaller/Scoop/issues/5677)) ### Performance Improvements diff --git a/libexec/scoop-update.ps1 b/libexec/scoop-update.ps1 index 3bcdcb7500..50f82090a5 100644 --- a/libexec/scoop-update.ps1 +++ b/libexec/scoop-update.ps1 @@ -89,7 +89,7 @@ function Sync-Scoop { Rename-Item $newdir 'current' -ErrorAction Stop } catch { Write-Warning $_ - abort "Scoop update failed. Folder in use. Paste $newdir into $currentdir." + abort "Scoop update failed. Folder in use. Please rename folders $currentdir to ``old`` and $newdir to ``current``." } } } else {