You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xh...@apache.org on 2020/04/07 22:13:41 UTC
[incubator-pinot] branch master updated: [TE] Show error messages
to the new UI (#5211)
This is an automated email from the ASF dual-hosted git repository.
xhsun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push:
new fc9f2a0 [TE] Show error messages to the new UI (#5211)
fc9f2a0 is described below
commit fc9f2a0779ef68c70baf76c8b963dcd59d12fe15
Author: Xiaohui Sun <xh...@linkedin.com>
AuthorDate: Tue Apr 7 15:13:33 2020 -0700
[TE] Show error messages to the new UI (#5211)
* [TE] Show error messages to the new UI
* [TE] Change to use message and more-info to show int the error panel
Co-authored-by: Xiaohui Sun <xh...@xhsun-mn1.linkedin.biz>
---
.../java/org/apache/pinot/thirdeye/detection/yaml/YamlResource.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/yaml/YamlResource.java b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/yaml/YamlResource.java
index 3b40ebe..7fcd8fd 100644
--- a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/yaml/YamlResource.java
+++ b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/yaml/YamlResource.java
@@ -857,7 +857,8 @@ public class YamlResource {
StringBuilder sb = new StringBuilder();
// show more stack message to frontend for debugging
getErrorMessage(0, 5, e, sb);
- responseMessage.put("message", "Failed to run the preview. Error stack: " + sb.toString());
+ responseMessage.put("message", "Failed to run the preview.");
+ responseMessage.put("more-info", "Error stack: " + sb.toString());
return Response.serverError().entity(responseMessage).build();
} finally {
// stop the preview
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org