Use better words for warnings

This commit is contained in:
Travis Ralston
2019-03-28 18:59:40 -06:00
committed by Bruno Windels
parent a54845bf76
commit 91aa783c3d
+8 -2
View File
@@ -415,14 +415,20 @@ EventTimelineSet.prototype.addEventsToTimeline = function(events, toStartOfTimel
if (direction === EventTimeline.BACKWARDS && existingIsLive) {
// The live timeline should never be spliced into a non-live position.
console.warn("Refusing to splice live timeline as a backwards timeline");
console.warn(
"Refusing to set a preceding existingTimeLine on our " +
"timeline as the existingTimeLine is live",
);
} else {
timeline.setNeighbouringTimeline(existingTimeline, direction);
}
if (inverseDirection === EventTimeline.BACKWARDS && timelineIsLive) {
// The live timeline should never be spliced into a non-live position.
console.warn("Refusing to splice live timeline as a forwards timeline");
console.warn(
"Refusing to set our preceding timeline on a existingTimeLine " +
"as our timeline is live",
);
} else {
existingTimeline.setNeighbouringTimeline(timeline, inverseDirection);
}