Repository: asterixdb
Updated Branches:
  refs/heads/master 5de12d01c -> 6cd3127c4


[NO ISSUE][FAIL] Improve Error Message

- user model changes: no
- storage format changes: no
- interface changes: no

Change-Id: I0b7d4663452e83007cafed4dcd54aedbf09bdc84
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2843
Sonar-Qube: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Contrib: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Murtadha Hubail <[email protected]>
Reviewed-by: abdullah alamoudi <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/6cd3127c
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/6cd3127c
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/6cd3127c

Branch: refs/heads/master
Commit: 6cd3127c4e492b73c29f81763fae70099f30e20e
Parents: 5de12d0
Author: Murtadha Hubail <[email protected]>
Authored: Fri Aug 3 14:23:21 2018 -0700
Committer: Murtadha Hubail <[email protected]>
Committed: Fri Aug 3 17:50:56 2018 -0700

----------------------------------------------------------------------
 .../java/org/apache/asterix/app/translator/QueryTranslator.java    | 2 +-
 .../asterix-common/src/main/resources/asx_errormsg/en.properties   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/6cd3127c/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
----------------------------------------------------------------------
diff --git 
a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
 
b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
index 02941d1..92295e7 100644
--- 
a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
+++ 
b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
@@ -572,7 +572,7 @@ public class QueryTranslator extends AbstractLangTranslator 
implements IStatemen
                     MetadataManager.INSTANCE.commitTransaction(mdTxnCtx);
                     return;
                 } else {
-                    throw new CompilationException(ErrorCode.DATASET_EXISTS, 
sourceLoc, datasetName);
+                    throw new CompilationException(ErrorCode.DATASET_EXISTS, 
sourceLoc, datasetName, dataverseName);
                 }
             }
             Datatype dt = 
MetadataManager.INSTANCE.getDatatype(metadataProvider.getMetadataTxnContext(),

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/6cd3127c/asterixdb/asterix-common/src/main/resources/asx_errormsg/en.properties
----------------------------------------------------------------------
diff --git 
a/asterixdb/asterix-common/src/main/resources/asx_errormsg/en.properties 
b/asterixdb/asterix-common/src/main/resources/asx_errormsg/en.properties
index ee88010..63e0cda 100644
--- a/asterixdb/asterix-common/src/main/resources/asx_errormsg/en.properties
+++ b/asterixdb/asterix-common/src/main/resources/asx_errormsg/en.properties
@@ -144,7 +144,7 @@
 1069 = Cannot drop index \"%1$s\". Drop dataset \"%1$s\" to remove this index
 1070 = Metadata error. %1$s
 1071 = A dataverse with this name %1$s already exists.
-1072 = A dataset with this name %1$s already exists.
+1072 = A dataset with name %1$s already exists in dataverse %2$s
 1073 = Cannot resolve alias reference for undefined identifier %1$s
 1074 = Cannot resolve ambiguous alias reference for identifier %1$s
 1075 = Inside limit clauses, it is disallowed to reference a variable having 
the same name as any variable bound in the same scope as the limit clause.

Reply via email to