Permalink
Browse files

Show a message when a server error happens while fetching content

  • Loading branch information...
dcramer committed Sep 20, 2012
1 parent 8f02223 commit 542003ae151df57d1c754ca2202eb8384a7477f6
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/sentry/templates/sentry/dashboard.html
@@ -124,6 +124,9 @@ <h6>{% trans "Projects" %}</h6>
$parent.css('opacity', 1)
$tab.tab('show');
$cont.find('.sparkline').sparkline('html', {enableTagOptions: true});
+ },
+ error: function(){
+ $cont.html('<p>{% trans "There was an error fetching data from the server." %}</p>');
}
});
});

0 comments on commit 542003a

Please sign in to comment.