         branch.read('META-INF/container.xml').fail () ->
           auth.$el.find('[data-repo-missing]').show()
           auth.editRepoModal()
+          promise.reject()
         .then () ->
           # Silently clear the settings first. This forces a reload even if
           # the user leaves the settings unchanged.  The reason for


    # Show a diff of all unsaved models
    showDiffsModal: () ->
      $modal = @$el.find('#diffs-modal')

      $body = $modal.find('.modal-body').empty()

          remoteUpdater.start().done () =>
            auth.trigger 'close'
            auth.model.trigger 'settings-changed'
            promise.resolve()

      promise
