From 84e0ddf50c7f2c1f24ccd23a6fae2fe33fdc4f83 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 30 Nov 2016 15:40:12 +0100 Subject: [PATCH] propagate error for taxonomy handler. --- modules/taxonomy/cms_taxonomy_api.e | 1 + modules/taxonomy/handler/taxonomy_handler.e | 3 +++ 2 files changed, 4 insertions(+) diff --git a/modules/taxonomy/cms_taxonomy_api.e b/modules/taxonomy/cms_taxonomy_api.e index 7fec959..1cd781a 100644 --- a/modules/taxonomy/cms_taxonomy_api.e +++ b/modules/taxonomy/cms_taxonomy_api.e @@ -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 diff --git a/modules/taxonomy/handler/taxonomy_handler.e b/modules/taxonomy/handler/taxonomy_handler.e index 7304a5e..444a1cb 100644 --- a/modules/taxonomy/handler/taxonomy_handler.e +++ b/modules/taxonomy/handler/taxonomy_handler.e @@ -137,6 +137,9 @@ feature -- HTTP Methods s.append ("%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)