From 7537724f976935061e182367b5099a1d54d5297b Mon Sep 17 00:00:00 2001 From: johnjbarton Date: Tue, 4 Sep 2018 15:47:22 -0700 Subject: [PATCH] feat(frameworks): report start() errors back to server. --- context/karma.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/context/karma.js b/context/karma.js index 2403ee898..4ce54cb52 100644 --- a/context/karma.js +++ b/context/karma.js @@ -37,7 +37,11 @@ function ContextKarma (callParentKarmaMethod) { this.loaded = function () { // has error -> cancel if (!hasError) { - this.start(this.config) + try { + this.start(this.config) + } catch (error) { + this.error(error.stack || error.toString()) + } } // remove reference to child iframe