ui: better error handling

This commit is contained in:
Jack Pearkes 2014-05-01 10:24:41 -04:00
parent d1fd682e55
commit 595af2deb1

View file

@ -58,7 +58,7 @@ App.BaseRoute = Ember.Route.extend({
App.IndexRoute = App.BaseRoute.extend({ App.IndexRoute = App.BaseRoute.extend({
// Retrieve the list of datacenters // Retrieve the list of datacenters
model: function(params) { model: function(params) {
return Ember.$.getJSON('/v1/catalog/datacenters').then(function(data) { return Ember.$.getJSON('/v1/catalog/datacenaters').then(function(data) {
return data return data
}) })
}, },