summaryrefslogtreecommitdiff
path: root/js/codeq/init.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq/init.js')
-rw-r--r--js/codeq/init.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/codeq/init.js b/js/codeq/init.js
index f34382a..ea8b93c 100644
--- a/js/codeq/init.js
+++ b/js/codeq/init.js
@@ -93,9 +93,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
//For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning you must initialize them yourself.
$('[data-toggle="popover"]').popover()
})
- .fail(function (e) {
- codeq.log.error('CodeQ failed to start: ' + e, e);
- alert('CodeQ failed to start: ' + e);
+ .fail(function (error) {
+ var message = 'CodeQ initialization failed: ' + error.message;
+ codeq.log.error(message, error);
+ alert(message);
})
.done();
};