Permalink
Browse files

Add logging to debug #1

  • Loading branch information...
1 parent 7b3c2eb commit 19656e3ffe59300be82580188c6822b690f6f55d @sdwilsh committed Jun 4, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 builds.js
View
@@ -82,6 +82,11 @@ function createBuildData(m)
builddata.slave = property[1];
break;
case "revision":
+ if (!property[1]) {
+ // This shouldn't happen, but seems to! Logging to track this down.
+ console.error("Property is null! Our key was " + builddata.key);
+ console.error(m.payload.properties);
+ }
builddata.rev = property[1].substr(0, 12);
break;
}

0 comments on commit 19656e3

Please sign in to comment.