Skip to content

Commit

Permalink
add more detail to assertion failure
Browse files Browse the repository at this point in the history
  • Loading branch information
cole committed Sep 28, 2024
1 parent 83dd697 commit 9049859
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ private boolean isDatabasePrincipal(Client localQueryClient) {
KustoOperationResult result = null;
try {
result = localQueryClient.executeMgmt(DB_NAME, String.format(".show database %s principals", DB_NAME));
// result = localQueryClient.execute(databaseName, String.format(".show version"));
} catch (Exception ex) {
Assertions.fail("Failed to execute show database principals command", ex);
Assertions.fail("Failed to execute show database principals command. " +
"Is USERNAME_HINT set to your email in your environment variables?", ex);
}
return resultContainsPrincipal(result);
}
Expand Down

0 comments on commit 9049859

Please sign in to comment.