Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: third_party/liblouis/liblouis_list_tables.py

Issue 578303002: Add new braille tables supported by liblouis 2.6.0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@libloiusupgrade
Patch Set: Machines are good at sorting, not me... Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/liblouis/liblouis_list_tables.py
diff --git a/third_party/liblouis/liblouis_list_tables.py b/third_party/liblouis/liblouis_list_tables.py
index 79b0c10d5a8ec685bf52f2d1dc637d041142685a..e42e5daee21b3fc0224d8740049000371acf4542 100755
--- a/third_party/liblouis/liblouis_list_tables.py
+++ b/third_party/liblouis/liblouis_list_tables.py
@@ -25,7 +25,11 @@ def ToNativePath(pathname):
def LoadTablesFile(filename):
with open(ToNativePath(filename), 'r') as fh:
- return json.load(fh)
+ try:
+ return json.load(fh)
+ except ValueError, e:
+ raise ValueError('Error parsing braille table file %s: %s' %
+ (filename, e.message))
def FindFile(filename, directories):
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd ('k') | third_party/liblouis/tables.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698