propagate error for taxonomy handler.

This commit is contained in:
2016-11-30 15:40:12 +01:00
parent 5e98d82934
commit 84e0ddf50c
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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)