Skip to content

Commit

Permalink
Added logging of failure support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Jacobs committed Apr 30, 2012
1 parent 71e2ff4 commit 6b62a46
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server.js
Expand Up @@ -15,16 +15,17 @@
, curVer = "0.0.2"
, args = process.argv
, mountDir = __dirname + '/mounts'
, mounter = require('connect-mounter').create(mountDir)
, mounterFactory = require('connect-mounter')
, mounter = mounterFactory.create(mountDir)
, failures = mounterFactory.fail
, xcorsOptions = { origins: ["http://apps.spotterrf.com"]
, methods: ['GET', 'POST']
, headers: ['Content-Type', 'Accept']
, credentials: false
}
, app
;
console.log('mounter:', mounter);
console.log('Checking for updates...');
console.log('BAD APPS:', failures);
request.get(server + "/version").when(function(err, ahr, data) {
if(err || data.error == true) {
console.log('Could not contact update server. Going it alone...');
Expand Down

0 comments on commit 6b62a46

Please sign in to comment.