From df3e87676e332c3d6f26de587810ee303517144a Mon Sep 17 00:00:00 2001 From: Stefan de Konink Date: Sat, 27 Jun 2015 14:30:51 +0200 Subject: [PATCH] Add the missing group reference identification to exception. --- lib/timeline/component/LineGraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/component/LineGraph.js b/lib/timeline/component/LineGraph.js index 30955039..f612ff52 100644 --- a/lib/timeline/component/LineGraph.js +++ b/lib/timeline/component/LineGraph.js @@ -464,7 +464,7 @@ LineGraph.prototype._updateAllGroupData = function () { if (this.itemsData._data.hasOwnProperty(itemId)) { var item = this.itemsData._data[itemId]; if (groupsContent[item.group] === undefined) { - throw new Error('Cannot find referenced group. Possible reason: items added before groups? Groups need to be added before items, as items refer to groups.') + throw new Error('Cannot find referenced group ' + item.group + '. Possible reason: items added before groups? Groups need to be added before items, as items refer to groups.') } item.x = util.convert(item.x,'Date'); groupsContent[item.group].push(item);