Skip to content

Commit

Permalink
Display error notification in browser when returning the project list…
Browse files Browse the repository at this point in the history
… produces an error
  • Loading branch information
otsakir committed Apr 28, 2015
1 parent 3876852 commit af62397
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ App.controller('projectManagerCtrl', function ( $scope, $http, $location, $route
$scope.projectList = data;
for ( var i=0; i < $scope.projectList.length; i ++)
$scope.projectList[i].viewMode = 'view';
})
.error(function (data, status, headers, config) {
if (status == 500)
notifications.put({type:'danger',message:"Internal server error"});
});
}

Expand Down

0 comments on commit af62397

Please sign in to comment.