   (with-promise out
     (let [p (js/window.indexedDB.databases)]
       (.then p #(put! out %))
-      (.catch p #(put! out (ex-info (str "error listing databases")
+      (.catch p #(put! out (ex-info "error listing databases"
                                     {:cause %
                                      :caller 'konserve.indexeddb/list-dbs}))))))
 

            [konserve.compressor]
            [konserve.encryptor]
            [konserve.impl.defaults :as defaults]
            [konserve.impl.storage-layout :as storage-layout :refer [PBackingStore]]
            [konserve.serializers]
            [konserve.utils :refer [with-promise]]))


   value offset in the same way that the filestore implementations are. Consumers
   must discard the amount of bytes found in the :offset key of the locked-cb
   arg map. See: https://developer.mozilla.org/en-US/docs/Web/API/Blob/stream"
  [db-name & {:as params}]
  (let [store-config (merge {:default-serializer :FressianSerializer
                             :compressor         konserve.compressor/null-compressor
                             :encryptor          konserve.encryptor/null-encryptor
                             :read-handlers      (atom {})
                             :write-handlers     (atom {})
                             :config             {:sync-blob? true
                                                  :in-place? true
                                                  :lock-blob? true}}
                            (dissoc params :config))
        backing            (IndexedDBackingStore. db-name nil)]
    (defaults/connect-default-store backing store-config)))
