Invalid wp-config fails in a confusing manner

Bug Summary

I have a number of sites, and a small number were refusing to import with a cryptic error; after a lot of trouble shooting, it turns out the WP-Config was set to import a wp-salt.php file, which, I assume, is deleted as part of the import process into local. Moving the salt info back into the config file and removing the import corrected this.

It appears this is part of websites created/managed in cloudways, but I believe either better error handing would be possible, or at least this case should be on the forums as there were very few resources listing this.

Error below, linking to an old thread I feel was a similar issue.

Uh-oh! Unable to import site. Error: Command Failed" /Applications/Local.app/Contents/Resources/extraResources/site-binaries/php-7.3.5/bin/php /Applications/Local.app/Contents/Resources/extraResources/site-binaries/wp-cli/wp-cli.phar --path=/Users/name/Local Sites/website/app/public --skip-themes --skip-plugins – [url=website.com ](http://url%3Dwebsite.com/) search-replace --all-tables-with-prefix [http://website.com](http://website.com/) [http://website.local](http://website.local/) Error: Error establishing a database connection

taken from: