           (throw
             (ex-info "Registry error!"
                      {:status status
-                      :body   {:error (:errors response)}})))))))
+                      :body   {:error response}})))))))
 
 (defn- get
   [registry api headers params]

                 :query-params params}]
    (execute @(http/get url options))))

;; Dockerhub

(defn dockerhub-repositories
  [registry query page]


(defn tags
  [registry repository-name]
  (let [headers (headers registry)
        api (str "/" repository-name "/tags/list")]
    (get registry api headers {})))
