From c0ec2f8d45ff83d6386a9f61a866d540f559f80f Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 19 Jun 2017 11:21:41 -0400 Subject: [PATCH] Bug 18822 - Better error response Content-Type: text/plain; charset=utf-8 Apply this patch first to see a change in the error feedback - instead of [Object object] you should get a text readable error Signed-off-by: Katrin Fischer Signed-off-by: Katrin Fischer Signed-off-by: Marcel de Rooy --- koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc index 2a0e050..4f9a76a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -578,7 +578,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr invalidateSearchResults(); Search.Reconnect(); } else { - humanMsg.displayMsg( '

' + _("Internal search error") + '

' + error + '

' + _("Please refresh the page and try again.") + '

', { className: 'humanError' } ); + humanMsg.displayMsg( '

' + _("Internal search error") + '

' + error.responseText + '

' + _("Please refresh the page and try again.") + '

', { className: 'humanError' } ); } } -- 2.1.4