Skip to content

Commit

Permalink
Fixes #1036
Browse files Browse the repository at this point in the history
The event can be ProjectMessage as well.
  • Loading branch information
cstamas committed Jun 19, 2024
1 parent 6150ae3 commit 84952a7
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,14 @@ private boolean doAccept(Message entry) {
break;
}
case Message.DISPLAY: {
Message.StringMessage d = (Message.StringMessage) entry;
clearDisplay();
terminal.writer().printf("%s%n", d.getMessage());
if (entry instanceof StringMessage) {
Message.StringMessage d = (Message.StringMessage) entry;
terminal.writer().printf("%s%n", d.getMessage());
} else if (entry instanceof ProjectEvent) {
Message.ProjectEvent d = (Message.ProjectEvent) entry;
terminal.writer().printf("[%s] %s%n", d.getProjectId(), d.getMessage());
}
break;
}
case Message.PRINT_OUT: {
Expand Down

0 comments on commit 84952a7

Please sign in to comment.