message: Restructure error handling  for ctest path.
diff: @@ -56,9 +56,7 @@ export interface SiteData {
  Testing: TestingData;
  }
  -export interface CTestResults {
  - Site: SiteData;
  -}
  +export interface CTestResults { Site: SiteData; }
  interface EncodedMeasurementValue {
  $: {encoding?: string; compression?: string;};
  @@ -345,9 +343,13 @@ export class CTestDriver implements vscode.Disposable {
  log.showChannel();
  this._decorationManager.clearFailingTestDecorations();
  - const configuration = driver.currentBuildType;
  const ctestpath = await paths.ctestPath;
  - if (ctestpath) {
  + if (ctestpath === null) {
  + log.info('CTest path is not set');
  + return -2;
  + }
  +
  + const configuration = driver.currentBuildType;
  const child
  = driver.executeCommand(ctestpath,
  [`-j${config.numCTestJobs}`, '-C', configuration, '-T', 'test', '--output-on-failure']
  @@ -364,10 +366,6 @@ export class CTestDriver implements vscode.Disposable {
  log.info('CTest finished with return code', res.retc);
  }
  return res.retc;
  - } else {
  - log.info('CTest path is not set');
  - return -2;
  - }
  }
  /**
  