Skip to content

Commit

Permalink
GitHub versions: show "none" upon error
Browse files Browse the repository at this point in the history
Closes #281
  • Loading branch information
espadrine committed Oct 18, 2014
1 parent 7212d71 commit c0d0891
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,7 @@ cache(function(data, match, sendBadge, request) {
}
sendBadge(format, badgeData);
} catch(e) {
badgeData.text[1] = 'invalid';
badgeData.text[1] = 'none';
sendBadge(format, badgeData);
}
});
Expand Down Expand Up @@ -1563,13 +1563,13 @@ cache(function(data, match, sendBadge, request) {
}
sendBadge(format, badgeData);
} catch(e) {
badgeData.text[1] = 'invalid';
badgeData.text[1] = 'none';
sendBadge(format, badgeData);
}
});
}));

// GitHub release integration.
// GitHub issues integration.
camp.route(/^\/github\/issues\/(.*)\/(.*)\.(svg|png|gif|jpg)$/,
cache(function(data, match, sendBadge, request) {
var user = match[1]; // eg, qubyte/rubidium
Expand Down

0 comments on commit c0d0891

Please sign in to comment.