You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ma...@apache.org on 2021/05/10 14:58:23 UTC

[incubator-pinot] branch master updated: [fix] update table config show error msg on exception (#6895)

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

mayanks 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 d2961e7  [fix] update table config show error msg on exception (#6895)
d2961e7 is described below

commit d2961e7de0e725e02307921d46332c7ace96482e
Author: troywinter <tr...@users.noreply.github.com>
AuthorDate: Mon May 10 22:58:01 2021 +0800

    [fix] update table config show error msg on exception (#6895)
    
    Co-authored-by: troywinter <me...@whale.im>
---
 .../pinot/controller/api/resources/PinotTableRestletResource.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java b/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java
index 9b88e62..570a960 100644
--- a/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java
+++ b/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java
@@ -367,7 +367,7 @@ public class PinotTableRestletResource {
       Schema schema = _pinotHelixResourceManager.getSchemaForTableConfig(tableConfig);
       TableConfigUtils.validate(tableConfig, schema);
     } catch (Exception e) {
-      String msg = String.format("Invalid table config: %s", tableName);
+      String msg = String.format("Invalid table config: %s with error: %s", tableName, e.getMessage());
       throw new ControllerApplicationException(LOGGER, msg, Response.Status.BAD_REQUEST, e);
     }
 

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