Skip to content

Commit

Permalink
Check for bsconfig before using it for instrumentation for init command
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarGaniga committed Feb 11, 2021
1 parent 4768967 commit 4358eff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/helpers/usageReporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,11 @@ function send(args) {

let bsConfig = args.bstack_config;
let cli_details = cli_version_and_path(bsConfig);
let data = {
cypress_version: bsConfig.run_settings.cypress_version
};
let data = {}

if (bsConfig && bsConfig.run_settings) {
data.cypress_version = bsConfig.run_settings.cypress_version
}

delete args.bstack_config;

Expand Down

0 comments on commit 4358eff

Please sign in to comment.