propagate error for taxonomy handler.
This commit is contained in:
@@ -152,6 +152,7 @@ feature -- Access node
|
|||||||
a_term_exists: a_term.has_id
|
a_term_exists: a_term.has_id
|
||||||
do
|
do
|
||||||
Result := taxonomy_storage.entities_associated_with_term (a_term)
|
Result := taxonomy_storage.entities_associated_with_term (a_term)
|
||||||
|
error_handler.append (taxonomy_storage.error_handler)
|
||||||
end
|
end
|
||||||
|
|
||||||
feature -- Write
|
feature -- Write
|
||||||
|
|||||||
@@ -137,6 +137,9 @@ feature -- HTTP Methods
|
|||||||
s.append ("</ul>%N")
|
s.append ("</ul>%N")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
if taxonomy_api.error_handler.has_error then
|
||||||
|
l_page.add_error_message ({STRING_32} "Query error: " + taxonomy_api.error_handler.as_string_representation)
|
||||||
|
end
|
||||||
s.append ("No entity found.")
|
s.append ("No entity found.")
|
||||||
end
|
end
|
||||||
l_page.set_main_content (s)
|
l_page.set_main_content (s)
|
||||||
|
|||||||
Reference in New Issue
Block a user