[gnome-continuous] tasks/resolve: Print which component failed to resolve
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous] tasks/resolve: Print which component failed to resolve
- Date: Tue, 1 Apr 2014 17:18:10 +0000 (UTC)
commit 304fec05f5c8a6c55fb8258fc7e8bf24daecacf6
Author: Colin Walters <walters verbum org>
Date: Tue Apr 1 13:18:03 2014 -0400
tasks/resolve: Print which component failed to resolve
src/js/tasks/task-resolve.js | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/js/tasks/task-resolve.js b/src/js/tasks/task-resolve.js
index 1c5ef51..b675403 100644
--- a/src/js/tasks/task-resolve.js
+++ b/src/js/tasks/task-resolve.js
@@ -101,7 +101,14 @@ const TaskResolve = new Lang.Class({
for (let i = 0; i < componentNames.length; i++) {
let component = this._snapshot.getComponent(componentNames[i]);
let tagOrBranch = component['tag'] || component['branch'] || 'master';
- let mirrordir = Vcs.ensureVcsMirror(this.mirrordir, component, cancellable);
+ let mirrordir;
+
+ try {
+ mirrordir = Vcs.ensureVcsMirror(this.mirrordir, component, cancellable);
+ } catch (e) {
+ print("Failed to create mirror for component " + component['name']);
+ throw e;
+ }
let currentCommit = Vcs.revParse(mirrordir, tagOrBranch, cancellable);
let revision = null;
let cachedEntry = resolveCache[component['name']];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]