diff --git a/src/root/common.tt b/src/root/common.tt index ad935285..4497cbe4 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -461,7 +461,11 @@ BLOCK makeLazyTab %] var pattern = /#.+/gi; var id = e.target.toString().match(pattern)[0]; if (id == "#[% tabName %]") { - $('#[% tabName %]').load("[% uri %]"); + $('#[% tabName %]').load("[% uri %]", function(response, status, xhr) { + if (status == "error") { + $('#[% tabName %]').html("
Error loading tab: " + xhr.status + " " + xhr.statusText + "
"); + } + }); } }); });