From bf7755a42f0d7f839efb6a2e4bc6e0ab66d5f751 Mon Sep 17 00:00:00 2001 From: scribu Date: Thu, 10 Apr 2014 01:43:57 +0300 Subject: [PATCH] add basic error checking --- script.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script.js b/script.js index d61db7c..2da1326 100644 --- a/script.js +++ b/script.js @@ -177,6 +177,11 @@ function updateChart() { } function filterBuilds(rawBuilds) { + if (typeof rawBuilds.length === 'undefined') { + alert('invalid repository: ' + repoName); + return; + } + var curOldestBuild = oldestBuild; rawBuilds.forEach(function(build) {