Skip to content

Commit

Permalink
Merge pull request #111 from browserstack/fix_init_error
Browse files Browse the repository at this point in the history
fix: handle null bsConfig for instrumentation in init command
  • Loading branch information
suryart authored Feb 15, 2021
2 parents 2a09083 + 4358eff commit f250d93
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 f250d93

Please sign in to comment.