Skip to content

Commit

Permalink
add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mostfamiliar committed Mar 18, 2016
1 parent 269c5a7 commit 70a584b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/gituser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ exports.getRepos = function(user, page){
$("#gitRepos").empty();
for(var i = 0; i < response.length; i++)
{

var name;
var description;
name = response[i].name;
Expand All @@ -20,6 +19,7 @@ exports.getRepos = function(user, page){
}

}).fail(function(error){
$("#gitRepos").append('Api error: ' + error.responseJSON.message)
console.log(error.responseJSON.message);
});
};

0 comments on commit 70a584b

Please sign in to comment.