   @validateSettings = (stage) ->
     for s in _.filter(@configSchema, (s) -> s.stage is stage)
       if not @validateField @[s.name], s
-        console.log @[s.name]
-        console.log s.name
         process.exit 1
         return false
     return true

    { stage: 2, name: 'port', desc: 'the port sabRE listens on.', default: 3000, type: 'int' }
    { stage: 2, name: 'useCurl', desc: 'check urls with curl before enqueueing to SABnzbd?', default: false, type: 'bool' }
    { stage: 2, name: 'hideOtherUsersData', desc: 'when enabled, users can only see stuff they enqueued. files from other users are hidden.', default: false, type: 'bool' }
    { stage: 2, name: 'noPostProcess', desc: 'when this is enabled no postprocessing (creation of tar archive) will take place. instead sabRE tries to set the category of the download to the currently logged in user\'s name so you can set up shares on the server to let users download the files directly. when enabling this, don\'t forget to configure categories in SABnzbd, one for each user. otherwise files will be downloaded to the regular download dir without placing them in separate directories for each user. enabled postprocessing requires sabRE to run on the same machine as SABnzbd.', default: false, type: 'bool' }
    { stage: 2, name: 'logFile', desc: 'file where sabRE logs into.', default: '../data/log.json', type: 'file', mustExist: false, wizardEnabled: false }
    { stage: 2, name: 'userFile', desc: 'sabRE\'s user/password "database".', default: '../data/users.json', type: 'file', wizardEnabled: false }
    { stage: 2, name: 'nzbUploadDir', desc: 'directory where uploaded .nzb files will be stored. files will be deleted after they have been enqueued.', default: '/tmp/', type: 'dir' }

             an error occured loading the sabRE configuration, the error was:
             %s.
             please fix settings.json and run sabRE again. if you want to recreate the file,
             just delete it and run sabRE again so the setup wizard will start up.

             '''
      console.log _.sprintf msg, @errorMsg
