Print error message when `upgrade` is unavailable.

Closes #1481.