Skip to content

Commit 392e757

Browse files
committed
report exceptions on flag parsing
1 parent f8206bb commit 392e757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/testObservability/helper/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ exports.setTestObservabilityFlags = (bsConfig) => {
758758
isTestObservabilitySession = isTestObservabilitySession && this.isTestObservabilitySupportedCypressVersion(bsConfig.run_settings.cypress_config_file);
759759
} catch(e) {
760760
isTestObservabilitySession = false;
761-
exports.debug(`EXCEPTION while parsing testObservability capability with error ${e}`);
761+
exports.debug(`EXCEPTION while parsing testObservability capability with error ${e}`, true, e);
762762
}
763763

764764

@@ -770,7 +770,7 @@ exports.setTestObservabilityFlags = (bsConfig) => {
770770
if(process.argv.includes('--disable-browserstack-automation')) isBrowserstackInfra = false;
771771
} catch(e) {
772772
isBrowserstackInfra = true;
773-
exports.debug(`EXCEPTION while parsing browserstackAutomation capability with error ${e}`);
773+
exports.debug(`EXCEPTION while parsing browserstackAutomation capability with error ${e}`, true, e);
774774
}
775775

776776

0 commit comments

Comments
 (0)