You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2018/11/01 13:48:28 UTC

[kylin] branch master updated: KYLIN-3662

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

shaofengshi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/master by this push:
     new 2793a94  KYLIN-3662
2793a94 is described below

commit 2793a94331d85a35ca7144a4584dd6ac0e4fb901
Author: chitin <ch...@gmail.com>
AuthorDate: Thu Nov 1 16:40:51 2018 +0800

    KYLIN-3662
---
 .../src/main/java/org/apache/kylin/rest/service/QueryService.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java b/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java
index d8e397e..bd4049d 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java
@@ -375,7 +375,7 @@ public class QueryService extends BasicService {
         // project not found
         ProjectManager mgr = ProjectManager.getInstance(KylinConfig.getInstanceFromEnv());
         if (mgr.getProject(sqlRequest.getProject()) == null) {
-            throw new BadRequestException(msg.getPROJECT_NOT_FOUND());
+            throw new BadRequestException(String.format(Locale.ROOT, msg.getPROJECT_NOT_FOUND(), sqlRequest.getProject()));
         }
         if (StringUtils.isBlank(sqlRequest.getSql())) {
             throw new BadRequestException(msg.getNULL_EMPTY_SQL());