Skip to content

Commit

Permalink
feat: include error message in DESCRIBE CONNECTOR (MINOR) (#3289)
Browse files Browse the repository at this point in the history
  • Loading branch information
agavra committed Sep 3, 2019
1 parent 04435d7 commit 458f1d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,9 @@ private void printConnectorDescription(final ConnectorDescription description) {
writer().println(String.format("%-20s : %s", "Type", description.getStatus().type()));
writer().println(String.format("%-20s : %s", "State", status.connector().state()));
writer().println(String.format("%-20s : %s", "WorkerId", status.connector().workerId()));
if (!status.connector().trace().isEmpty()) {
writer().println(String.format("%-20s : %s", "Trace", status.connector().trace()));
}
writer().println();

if (!status.tasks().isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ public void testPrintConnectorDescription() throws IOException {
+ "Type : source\n"
+ "State : state\n"
+ "WorkerId : worker\n"
+ "Trace : msg\n"
+ "\n"
+ " Task ID | State | Error Trace \n"
+ "-------------------------------\n"
Expand Down

0 comments on commit 458f1d8

Please sign in to comment.