[vlc-commits] VLSub: Display a user visible error when the hash can't be generated
Hugo Beauzée-Luyssen
git at videolan.org
Thu Apr 12 13:01:10 CEST 2018
vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Apr 5 10:56:12 2018 +0200| [7903f0af12b0c77822e7aaf83465d3ef5a1335cc] | committer: Hugo Beauzée-Luyssen
VLSub: Display a user visible error when the hash can't be generated
(cherry picked from commit a3f0523b76d9be3a75dd31b5d9a05cd3128f7568)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7903f0af12b0c77822e7aaf83465d3ef5a1335cc
---
share/lua/extensions/VLSub.lua | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index 2fd98da9a9..08597fc2e2 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -181,7 +181,8 @@ local options = {
mess_err_conf_access ='Can\'t find a suitable path to save'..
'config, please set it manually',
mess_err_wrong_path ='the path contains illegal character, '..
- 'please correct it'
+ 'please correct it',
+ mess_err_hash = 'Failed to generate hash'
}
}
@@ -1455,6 +1456,8 @@ function searchHash()
openSub.checkSession()
openSub.request("SearchSubtitlesByHash")
display_subtitles()
+ else
+ setError(lang["mess_err_hash"])
end
end
More information about the vlc-commits
mailing list