Skip to content

Commit a2bb11f

Browse files
committed
Update main.js
1 parent dac2f52 commit a2bb11f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,9 @@ function getData(){
2121
// Center
2222
html += '<br><b>Url Link: </b>' + url;
2323
$('.profile').html(html);
24+
}).fail(function(data){
25+
html = '<h1>A Github user with that name does not exist.';
26+
$('.profile').html(html);
27+
return;
2428
});;
2529
}

0 commit comments

Comments
 (0)