From 8257375a85fda791a0fa8b26a89770c613ce87bd Mon Sep 17 00:00:00 2001 From: johnjbarton Date: Wed, 5 Sep 2018 09:00:16 -0700 Subject: [PATCH] feat(frameworks): report start() errors back to server. (#3126) --- 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