Skip to content

Commit 649bcc5

Browse files
🩹 [Patch] Improve error output from Publish-PSResource (#27)
## Description - Improve error output from `Publish-PSResource` ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 2fd9c66 commit 649bcc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/helpers/Publish-PSModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ function Publish-PSModule {
321321
try {
322322
Publish-PSResource -Path $ModulePath -Repository PSGallery -ApiKey $APIKey -Verbose
323323
} catch {
324-
Write-Error 'Failed to publish the module to the PowerShell Gallery.'
324+
Write-Error $_.Exception.Message
325325
exit $LASTEXITCODE
326326
}
327327
}

0 commit comments

Comments
 (0)