-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug/MET-5119 intermittent enrichment error #605
Conversation
…ull instead of 500 internal server error
…ttent_enrichment_error
…ng stacktrace when an error occured
...chment-client/src/main/java/eu/europeana/enrichment/rest/client/enrichment/EnricherImpl.java
Outdated
Show resolved
Hide resolved
...chment-client/src/main/java/eu/europeana/enrichment/rest/client/enrichment/EnricherImpl.java
Outdated
Show resolved
Hide resolved
...chment-client/src/main/java/eu/europeana/enrichment/rest/client/enrichment/EnricherImpl.java
Show resolved
Hide resolved
...chment-client/src/main/java/eu/europeana/enrichment/rest/client/enrichment/EnricherImpl.java
Outdated
Show resolved
Hide resolved
...metis-enrichment-client/src/main/java/eu/europeana/enrichment/rest/client/report/Report.java
Outdated
Show resolved
Hide resolved
warningStatus = containsWarningStatus(exception.getMessage()); | ||
} else { | ||
warningStatus = containsWarningStatus(rootCause.getMessage()); | ||
if (warningStatus != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this if
be outside of the if...else
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. This inner if applies only when the rootCause
exists otherwise the exception
field can be null
if a take it out.
No description provided.