diff options
author | Richard Hughes <richard@hughsie.com> | 2014-08-05 22:22:29 +0200 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-08-05 22:22:29 +0200 |
commit | a2663f6aaef204d9ec887dc97dbd82f03738c5ed (patch) | |
tree | 79f2c7f5c1404208633b5904b835b22e2b74252b /libappstream-glib/as-node.c | |
parent | b14fd96ac3849821ebd49657f6c9ea078f505882 (diff) | |
download | appstream-glib-a2663f6aaef204d9ec887dc97dbd82f03738c5ed.tar.gz |
trivial: Add AS_NODE_ERROR_INVALID_MARKUP for a less fatal error
Diffstat (limited to 'libappstream-glib/as-node.c')
-rw-r--r-- | libappstream-glib/as-node.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libappstream-glib/as-node.c b/libappstream-glib/as-node.c index 7fe760a..42c59cf 100644 --- a/libappstream-glib/as-node.c +++ b/libappstream-glib/as-node.c @@ -1657,7 +1657,7 @@ as_node_get_localized_unwrap_type_li (const GNode *node, /* only <li> is valid in lists */ g_set_error (error, AS_NODE_ERROR, - AS_NODE_ERROR_FAILED, + AS_NODE_ERROR_INVALID_MARKUP, "Tag %s in %s invalid", data_c->name, data->name); return FALSE; @@ -1668,7 +1668,7 @@ as_node_get_localized_unwrap_type_li (const GNode *node, /* only <p>, <ul> and <ol> is valid here */ g_set_error (error, AS_NODE_ERROR, - AS_NODE_ERROR_FAILED, + AS_NODE_ERROR_INVALID_MARKUP, "Unknown tag '%s'", data->name); return FALSE; @@ -1733,7 +1733,7 @@ as_node_get_localized_unwrap_type_ul (const GNode *node, /* only <li> is valid in lists */ g_set_error (error, AS_NODE_ERROR, - AS_NODE_ERROR_FAILED, + AS_NODE_ERROR_INVALID_MARKUP, "Tag %s in %s invalid", data_c->name, data->name); return FALSE; @@ -1744,7 +1744,7 @@ as_node_get_localized_unwrap_type_ul (const GNode *node, /* only <p>, <ul> and <ol> is valid here */ g_set_error (error, AS_NODE_ERROR, - AS_NODE_ERROR_FAILED, + AS_NODE_ERROR_INVALID_MARKUP, "Unknown tag '%s'", data->name); return FALSE; |