From 3a8192688a256798158f6aff646837a812ce7273 Mon Sep 17 00:00:00 2001 From: de-lan Date: Wed, 12 Jul 2023 13:15:13 -0700 Subject: [PATCH] fix(CDAP-20647): Improve SCM config not found error message and add direction where to configure. --- .../java/io/cdap/cdap/common/RepositoryNotFoundException.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdap-common/src/main/java/io/cdap/cdap/common/RepositoryNotFoundException.java b/cdap-common/src/main/java/io/cdap/cdap/common/RepositoryNotFoundException.java index bc16399ebd47..eeade7d21035 100644 --- a/cdap-common/src/main/java/io/cdap/cdap/common/RepositoryNotFoundException.java +++ b/cdap-common/src/main/java/io/cdap/cdap/common/RepositoryNotFoundException.java @@ -26,7 +26,8 @@ public class RepositoryNotFoundException extends NotFoundException { private final NamespaceId namespace; public RepositoryNotFoundException(NamespaceId id) { - super(String.format("The repository configuration of namespace %s is not found.", id)); + super(String.format("There is no repository configuration for namespace %s. " + + "Please configure it in Namespace Admin page", id)); this.namespace = id; }