Skip to content

Commit

Permalink
fix(schema): Ignore any HTTP 404 on /config/<subject> endpoint of Sch…
Browse files Browse the repository at this point in the history
…ema Registry (#765)

close #763 

Co-authored-by: Julien Chanaud <julien.chanaud@michelin.com>
  • Loading branch information
2 people authored and tchiotludo committed Oct 24, 2021
1 parent cdffd2e commit e9785ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public Schema.Config getConfig(String clusterId, String subject) throws IOExcept
.getConfig(subject)
);
} catch (RestClientException exception) {
if (exception.getErrorCode() != ERROR_NOT_FOUND) {
if (exception.getStatus() != 404) {
throw exception;
}

Expand Down

0 comments on commit e9785ac

Please sign in to comment.