propagate error for taxonomy handler.
This commit is contained in:
@@ -152,6 +152,7 @@ feature -- Access node
|
||||
a_term_exists: a_term.has_id
|
||||
do
|
||||
Result := taxonomy_storage.entities_associated_with_term (a_term)
|
||||
error_handler.append (taxonomy_storage.error_handler)
|
||||
end
|
||||
|
||||
feature -- Write
|
||||
|
||||
@@ -137,6 +137,9 @@ feature -- HTTP Methods
|
||||
s.append ("</ul>%N")
|
||||
end
|
||||
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.")
|
||||
end
|
||||
l_page.set_main_content (s)
|
||||
|
||||
Reference in New Issue
Block a user