diff --git a/bjo.lock b/bjo.lock index d92f0c1..f2ab8b7 100644 --- a/bjo.lock +++ b/bjo.lock @@ -3,9 +3,9 @@ (package (name (bjogui)) (version "0.1.0") (source (git (url "https://rikspucko.koketteriet.se/bjoli/bjogui"))) (commit "c8a121030e666044766e523aec8cf42f02343f0d645e1b42316f6607374cef23")) - (package (name (bjomarks)) (version "0.1.0") + (package (name (bjomarks)) (version "0.2.1") (source (git (url "https://rikspucko.koketteriet.se/bjoli/bjomarks"))) - (commit "a4b2aaf94e73f933be1a3d96ad7c6351060dc065999af937e3692925b3578ea3")) - (package (name (bjosodium)) (version "0.1.0") + (commit "fd4c0f8bb019761ea7ac58644fe43d32134f46ef0aa4a85bf50915183709d779")) + (package (name (bjosodium)) (version "0.2.0") (source (git (url "https://rikspucko.koketteriet.se/bjoli/bjosodium"))) - (commit "911f4bcc4676ca6393f8eb43286fdddd69cf6b5665aca0770ceaf869fb73767b")))) + (commit "2be75d9b22691b44d571ef4fa8516390ca9a47a4d64a3d92b39d6f9878627b13")))) diff --git a/manifest.bjodat b/manifest.bjodat index 10bf584..9425a49 100644 --- a/manifest.bjodat +++ b/manifest.bjodat @@ -1,6 +1,6 @@ (package (name (bjomarks-android)) - (version "0.1.0") + (version "0.1.1") (description "Bookmarks on an Android phone: a bjomarks vault in a folder that a file syncer shares, and the Share menu.") (license "MPL-2.0") @@ -17,7 +17,7 @@ (depends (package (name (bjomarks)) - (version (version-at-least "0.1.0")) + (version (version-at-least "0.2.1")) (source (git (url "https://rikspucko.koketteriet.se/bjoli/bjomarks")))) (package (name (bjogui)) (version (version-at-least "0.1.0")) diff --git a/src/app.bjo b/src/app.bjo index af286e1..b0a5255 100644 --- a/src/app.bjo +++ b/src/app.bjo @@ -690,7 +690,9 @@ ((Some f) (def name (stored-file-name f)) (next (record-set m (note (str "Reading " name "…"))) - (wrap (blocking (fun () (read-firefox-backup (bytes->string (stored-file-bytes f))))) + (wrap (blocking (fun () (match (bytes->string (stored-file-bytes f)) + ((Ok text) (read-firefox-backup text)) + ((Err e) (Err (str "the file is not UTF-8: " (decode-error-message e))))))) (fun (r) (BackupRead name r))))) (None (next m))))