diff --git a/bin/helpers/usageReporting.js b/bin/helpers/usageReporting.js index 28f44aa1..174f66f3 100644 --- a/bin/helpers/usageReporting.js +++ b/bin/helpers/usageReporting.js @@ -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;