Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhou-db committed Sep 27, 2024
1 parent 40c650a commit 5c91c27
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1058,9 +1058,9 @@ class DeltaSharingRestClient(
if (!(statusCode == HttpStatus.SC_OK ||
(allowNoContent && statusCode == HttpStatus.SC_NO_CONTENT))) {
var additionalErrorInfo = ""
if (statusCode == HttpStatus.SC_UNAUTHORIZED && tokenExpired()) {
if (statusCode == HttpStatus.SC_UNAUTHORIZED && tokenExpired(profile)) {
additionalErrorInfo = s"It may be caused by an expired token as it has expired " +
s"at ${authCredentialProvider.getExpirationTime()}"
s"at ${profile.expirationTime}"
}
// Only show the last 100 lines in the error to keep it contained.
val responseToShow = lines.drop(lines.size - 100).mkString("\n")
Expand Down

0 comments on commit 5c91c27

Please sign in to comment.