Skip to content

Commit

Permalink
change exception msg
Browse files Browse the repository at this point in the history
  • Loading branch information
lirui-apache committed Apr 9, 2024
1 parent a0a0890 commit 54a62df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ public void alterTable(RawStore msdb, Warehouse wh, String catName, String dbnam
}
long affectedRows = msdb.updateParameterWithExpectedValue(oldt, expectedKey, expectedValue, newValue);
if (affectedRows != 1) {
throw new MetaException(String.format(
"The table has been modified. Updating expected key %s affects %d rows", expectedKey, affectedRows));
// make sure concurrent modification exception messages have the same prefix
throw new MetaException("The table has been modified. The parameter value for key '" + expectedKey + "' is different");
}
}

Expand Down

0 comments on commit 54a62df

Please sign in to comment.