     client.makeUrl path, download: true, (error, urlData) ->
       if error?
         handleDropboxError error
-        reject()
+        reject new Error()
       else
         resolve
           name: name

        $('#player').data 'bbplayer', bbplayer
        loading false
        $('#player').data('bbplayer').bbaudio.play()
  return false

getUrlData = (album, name) ->

    else
      displayError 'Dropbox Error', "An unexpected error occurred. Please refresh the page and try again."

displayed = false
displayError = (title, message) ->
  if !displayed
    displayed = true
    loading false
    bootbox.alert
      title: title
      message: message
      callback: ->
        bootbox.hideAll()
        displayed = false
  return false

signedIn = ->
