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

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


The following commit(s) were added to refs/heads/master by this push:
     new 78dec5b3db HDDS-7794. [snapshot] SnapshotDiff should throw better 
error messages for exception handling (#5007)
78dec5b3db is described below

commit 78dec5b3db363c732766ea51f01c9423e16167be
Author: Swaminathan Balachandran <[email protected]>
AuthorDate: Fri Jun 30 13:57:58 2023 -0700

    HDDS-7794. [snapshot] SnapshotDiff should throw better error messages for 
exception handling (#5007)
---
 .../main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotUtils.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotUtils.java
 
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotUtils.java
index f78c6e0645..de6ab46361 100644
--- 
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotUtils.java
+++ 
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotUtils.java
@@ -70,7 +70,8 @@ public final class SnapshotUtils {
       throw e;
     }
     if (snapshotInfo == null) {
-      throw new OMException(KEY_NOT_FOUND);
+      throw new OMException("Snapshot '" + snapshotKey + "' is not found.",
+          KEY_NOT_FOUND);
     }
     return snapshotInfo;
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to