Skip to content

Commit

Permalink
Improve kudu schema/table not found error message
Browse files Browse the repository at this point in the history
Include the throwable kuduexception cause
  • Loading branch information
grantatspothero authored and hashhar committed Mar 25, 2022
1 parent bdeb8c6 commit 02a5623
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ public KuduTable openTable(SchemaTableName schemaTableName)
catch (KuduException e) {
log.debug(e, "Error on doOpenTable");
if (!listSchemaNames().contains(schemaTableName.getSchemaName())) {
throw new SchemaNotFoundException(schemaTableName.getSchemaName());
throw new SchemaNotFoundException(schemaTableName.getSchemaName(), e);
}
throw new TableNotFoundException(schemaTableName);
throw new TableNotFoundException(schemaTableName, e);
}
}

Expand Down

0 comments on commit 02a5623

Please sign in to comment.