Fix 3174 (unknown internal error when installing non-zip file)

Fixes #3174: Changed `Package.formatError` to better handle the error messages returned from the server