         console.log "  steroids dolandb resource beer name:string brewery:string alcohol:integer drinkable:boolean"
         @dolandbCredentialApi.close()
       , (err) ->
-        console.log err
+        console.log JSON.stringify err
         @dolandbCredentialApi.close()
     )
 

DbBrowser = request.newClient(db_browser_url)

class DolanDB
  constructor: (@options={}) ->
    @dolandbCredentialApi = restify.createJsonClient
      url: dolan_db_base_url
    @dolandbCredentialApi.basicAuth Login.currentAccessToken(), 'X'

  test: (params) =>
    @createBucketWithCredentials(params[0])
    .then(
      (data) =>

dolan_db_url = "#{dolan_db_base_url}/v1/datastorage"

db_browser_url = 'http://dolandb-browser.devgyver.com'
#db_browser_url = 'http://localhost:3001'

###

