         console.log "buckets success"
         console.log res
         if res['result']
-          console.log res.result
+          @$progress.get_buckets_success(res.result)
+        else
+          @$progress.error(res.error)
 
   create_bucket: (bucket_type, name, desc) ->
     jQuery.ajax

        console.log res
        if res['result']
          console.log res.result

      @$path_fix = ""
    @buckets_path = @$path_fix + "/buckets"
    @bucketings_path = @$path_fix + "/bucketings"
    @$progress ||= new MindpinBucketsProgress(@)

  buckets: (bucket_type) ->
    jQuery.ajax
