You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by fj...@apache.org on 2019/04/11 21:40:05 UTC

[incubator-druid] branch master updated: adding host to the error display (#7453)

This is an automated email from the ASF dual-hosted git repository.

fjy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-druid.git


The following commit(s) were added to refs/heads/master by this push:
     new c5c2bf7  adding host to the error display (#7453)
c5c2bf7 is described below

commit c5c2bf77f0c0ca6cf0f5c7e29d04bdbd30220997
Author: Vadim Ogievetsky <va...@gmail.com>
AuthorDate: Thu Apr 11 14:39:57 2019 -0700

    adding host to the error display (#7453)
---
 web-console/src/utils/druid-query.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/web-console/src/utils/druid-query.tsx b/web-console/src/utils/druid-query.tsx
index 8968757..9dd4107 100644
--- a/web-console/src/utils/druid-query.tsx
+++ b/web-console/src/utils/druid-query.tsx
@@ -21,7 +21,12 @@ import { AxiosResponse } from 'axios';
 
 export function getDruidErrorMessage(e: any) {
   const data: any = ((e.response || {}).data || {});
-  return [data.error, data.errorMessage, data.errorClass].filter(Boolean).join(' / ') || e.message;
+  return [
+    data.error,
+    data.errorMessage,
+    data.errorClass,
+    data.host ? `on host ${data.host}` : null
+  ].filter(Boolean).join(' / ') || e.message;
 }
 
 export async function queryDruidRune(runeQuery: Record<string, any>): Promise<any> {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org