From d4338e002facdff1c68bd3957eea0aaa95657fbb 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 Apply this patch first to see a change in the error feedback - instead of [Object object] you should get a text readable error --- 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 a6ac276..164665d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -570,7 +570,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