projects
/
roobuilder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce98eaf
)
src/Resources.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 9 Sep 2022 07:08:51 +0000
(15:08 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 9 Sep 2022 07:08:51 +0000
(15:08 +0800)
src/Resources.vala
patch
|
blob
|
history
diff --git
a/src/Resources.vala
b/src/Resources.vala
index
7b01f21
..
f69b359
100644
(file)
--- a/
src/Resources.vala
+++ b/
src/Resources.vala
@@
-196,9
+196,14
@@
public class Resources : Object
public void parseDirectory(string json, string target)
{
-
print
("%s\n", json);
+
GLib.debug
("%s\n", json);
var pa = new Json.Parser();
- pa.load_from_data(json);
+ try {
+ pa.load_from_data(json);
+ } catch (GLib.Error e) {
+ GLib.debug("Faile dto load json file %s", e.message);
+ return;
+ }
var node = pa.get_root();
if (node.get_node_type () != Json.NodeType.ARRAY) {
return;