Improve the error message when trying to upgrade a pinned package.