1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-23 13:53:15 +00:00

New error message text for recursive transclusion error

This commit is contained in:
Jermolene 2014-03-17 11:54:41 +00:00
parent 9de17aa206
commit 06500e5f71
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ TranscludeWidget.prototype.execute = function() {
// Check for recursion
var recursionMarker = this.makeRecursionMarker();;
if(this.parentWidget && this.parentWidget.hasVariable("transclusion",recursionMarker)) {
this.makeChildWidgets([{type: "text", text: "Tiddler recursion error in transclude widget"}]);
this.makeChildWidgets([{type: "text", text: "Recursive transclusion error in transclude widget"}]);
return;
}
// Set context variables for recursion detection

View File

@ -163,7 +163,7 @@ describe("Widget module", function() {
var wrapper = renderWidgetNode(widgetNode);
describe("should detect the recursion", function() {
// Test the rendering
expect(wrapper.innerHTML).toBe("Tiddler recursion error in transclude widget\n");
expect(wrapper.innerHTML).toBe("Recursive transclusion error in transclude widget\n");
});
});