diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java index 5822657fd88b..634f54faa63d 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java @@ -2125,8 +2125,8 @@ public CompletableFuture restoreSnapshot(String snapshotName, boolean take } } if (tableName == null) { - future.completeExceptionally(new RestoreSnapshotException( - "Unable to find the table name for snapshot=" + snapshotName)); + future.completeExceptionally( + new RestoreSnapshotException("The snapshot " + snapshotName + " does not exist.")); return; } final TableName finalTableName = tableName;