microsoft / azure-artifacts-migration

Migration scripts to help move your packages to Azure Artifacts from other package repositories.
MIT License
13 stars 18 forks source link

Update MyGetPackageMigration.psm1 #18

Closed tintse-thxsky-MSFT closed 5 months ago

tintse-thxsky-MSFT commented 5 months ago

Add $ErrorActionPreference = "Stop", so that on error the script will stop and fully output the error message.

Currently it doesn't stop, and the error message is truncated so it's hard for users to understand what the problem is.