From bfe31035424a42b8841bb791a34cf72332d6f645 Mon Sep 17 00:00:00 2001 From: jaredevantabor Date: Fri, 3 Feb 2017 16:52:48 -0800 Subject: [PATCH] fix for #5181, about entering invalid search entries. --- awx/ui/client/src/shared/smart-search/queryset.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/src/shared/smart-search/queryset.service.js b/awx/ui/client/src/shared/smart-search/queryset.service.js index 877222da11..869d4e57a0 100644 --- a/awx/ui/client/src/shared/smart-search/queryset.service.js +++ b/awx/ui/client/src/shared/smart-search/queryset.service.js @@ -264,11 +264,11 @@ export default ['$q', 'Rest', 'ProcessErrors', '$rootScope', 'Wait', 'DjangoSear this.error(response.data, response.status); - return response; + throw response; }.bind(this)); }, error(data, status) { - ProcessErrors($rootScope, data, status, null, { + ProcessErrors($rootScope, null, status, null, { hdr: 'Error!', msg: 'Call to ' + this.url + '. GET returned: ' + status });