Skip to content

Commit

Permalink
HBASE-28619 Fix the inaccurate message when snapshot doesn't exist (#…
Browse files Browse the repository at this point in the history
…5948)

Signed-off-by: Duo Zhang <[email protected]>
(cherry picked from commit 77ae12b)
  • Loading branch information
guluo2016 authored and Apache9 committed Jun 1, 2024
1 parent 8654420 commit fc88360
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2125,8 +2125,8 @@ public CompletableFuture<Void> 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;
Expand Down

0 comments on commit fc88360

Please sign in to comment.