enhance: add hls-file path in the error message

This commit is contained in:
Tienson Qin
2023-02-09 23:03:30 +08:00
committed by Andelf
parent 6d210e6371
commit f469e89990

View File

@@ -811,7 +811,9 @@
(fn [^js e]
(js/console.error "[load hls error]" e)
(let [msg (str "Error: load initial highlights failed! \n" e)]
(let [msg (str (util/format "Error: failed to load the highlights file: \"%s\". \n"
(:hls-file pdf-current))
e)]
(notification/show! msg :error)
(set-hls-state! {:loaded true :error e}))))