       devMode = atom.inDevMode()
       clearTimeout @functionPoll
       @functionConditions = []
+      btnErrors = []
       for btn in toolBarButtons
 
-        if ( btn.hide? && @condition(btn.hide) ) or ( btn.show? && !@condition(btn.show) )
+        try
+          if ( btn.hide? && @condition(btn.hide) ) or ( btn.show? && !@condition(btn.show) )
+            continue
+        catch err
+          btnErrors.push "#{err.message}\n#{util.inspect(btn, depth: 4)}"
           continue
 
         continue if btn.mode and btn.mode is 'dev' and not devMode

          for val in ary
            button.element.classList.add val.trim()

        if ( btn.disable? && @condition(btn.disable) ) or ( btn.enable? && !@condition(btn.enable) )
          button.setEnabled false

      @pollFunctions()


        return true
      catch err
        @configFilePath = null
        atom.notifications.addError 'Something went wrong creating the Tool Bar config file! Please restart Atom to try again.', detail: err.stack
        console.error err
        return false

