More detailed message in 'error' CA when bosh cli features are disabled.

The message directs users to consult the readme for information on how
to configure the CLI.
This commit is contained in:
Kris De Volder
2017-08-16 13:32:59 -07:00
parent 733ca50f3e
commit fdfc8d59b7

View File

@@ -108,7 +108,9 @@ public abstract class BoshCommandBasedModelProvider<T> implements DynamicModelPr
protected String executeCommand(ExternalCommand command) throws Exception {
if (command==null) {
Log.log("bosh cli based editor features are disabled");
throw new IOException("bosh cli based editor features are disabled");
throw new IOException("bosh cli based editor features are disabled. "
+ "Consult the atom/vscode extension's readme for detailed "
+ "instructions on how to target a director and enable them.");
}
try {
ExternalProcess process = new ExternalProcess(getWorkingDir(), command, true, config.getTimeout());