Skip to content
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

[FSSDK-10523] forward exceptions for un-expected response from ODP #488

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ open class ODPSegmentClient(private val client: ClientForODPOnly, private val lo
logger.debug("Successfully fetched ODP segments: {}", json)
return@Request json
} else {
logger.error("Unexpected response from ODP segment endpoint, status: $status")
return@Request null
var errMsg = "Unexpected response from ODP segment endpoint, status: $status"
logger.error(errMsg)
// return@Request null
throw Exception(errMsg)
}
} catch (e: Exception) {
logger.error("Error making ODP segment request", e)
Expand Down
Loading