[gnome-continuous] extras/build.gnome.org: Print (not found) when we don't find a task for a build
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous] extras/build.gnome.org: Print (not found) when we don't find a task for a build
- Date: Sat, 23 Nov 2013 22:33:06 +0000 (UTC)
commit 9bb092f7d4f5e53936b771f1b934c3e8afb833a0
Author: Colin Walters <walters verbum org>
Date: Fri Nov 22 23:27:31 2013 -0500
extras/build.gnome.org: Print (not found) when we don't find a task for a build
extras/build.gnome.org/controllers.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/extras/build.gnome.org/controllers.js b/extras/build.gnome.org/controllers.js
index 1ca64d2..1bb1f70 100644
--- a/extras/build.gnome.org/controllers.js
+++ b/extras/build.gnome.org/controllers.js
@@ -42,7 +42,12 @@
data['name'] = taskName;
data['version'] = relpathToVersion(data['buildPath']);
tasks.push(data);
- });
+ }).error(function(data, status, headers, config) {
+ data = {};
+ data['name'] = taskName;
+ data['status'] = '(not found for this build)';
+ tasks.push(data);
+ });
});
$scope.tasks = tasks;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]