This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Deal with empty dependencies, fixes #18

  • Loading branch information...
bergie committed May 8, 2012
1 parent 610a01a commit 292b0f7b7f0acce1359979853b2c91c148afe58e
Showing with 4 additions and 1 deletion.
  1. +4 −1 server/web.js
View
@@ -53,7 +53,10 @@ app.post('/make', function(request, response, next) {
var id = uuid();
var command = fields.command;
var prefix = fields.prefix;
- var deps = JSON.parse(fields.deps);
+ var deps = [];
+ if (fields.deps) {
+ deps = JSON.parse(fields.deps);
+ }
// create a couchdb documents for this build
log_action(id, 'saving to couchdb');

0 comments on commit 292b0f7

Please sign in to comment.