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

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

displayError = (title, message) ->
  loading false
  bootbox.dialog
    title: title
    message: message
    buttons:
      "Close":
        className: 'btn-danger'
  return false

signedIn = ->

        $('#player').data 'bbplayer', bbplayer
        loading false
        $('#player').data('bbplayer').bbaudio.play()
      .error (e) ->
        console.log e.message
  return false

getUrlData = (album, name) ->
