Skip to content

Commit

Permalink
Make exception message more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
tsreaper committed Jul 15, 2024
1 parent 684bfa3 commit d5daaff
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,12 @@ public DataStream<RowData> build() {
if (env == null) {
throw new IllegalArgumentException("StreamExecutionEnvironment should not be null.");
}

if (conf.contains(CoreOptions.CONSUMER_ID)
&& !conf.contains(CoreOptions.CONSUMER_EXPIRATION_TIME)) {
throw new IllegalArgumentException("consumer.expiration-time should be specified.");
throw new IllegalArgumentException(
"consumer.expiration-time should be specified when using consumer-id.");
}

if (sourceBounded) {
return buildStaticFileSource();
}
Expand Down

0 comments on commit d5daaff

Please sign in to comment.