Fixes #4583: add error messages when something can go bad in deployment