Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-alhuang committed Jul 10, 2024
1 parent a88a524 commit a9c0fd0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import static net.snowflake.ingest.utils.Constants.RESPONSE_SUCCESS;

import java.io.IOException;
import java.util.stream.Collectors;
import net.snowflake.client.jdbc.internal.apache.http.impl.client.CloseableHttpClient;
import net.snowflake.ingest.connection.IngestResponseException;
import net.snowflake.ingest.connection.RequestBuilder;
Expand Down Expand Up @@ -200,8 +199,8 @@ RegisterBlobResponse registerBlob(RegisterBlobRequest request, final int executi

if (response.getStatusCode() != RESPONSE_SUCCESS) {
logger.logDebug(
"Register blob request, request={}",
request.getBlobs().stream().map(BlobMetadata::getPath).collect(Collectors.toList()),
"Register blob request failed, request={}, response={}, executionCount={}",
request.getStringForLogging(),
response.getMessage(),
executionCount);
throw new SFException(ErrorCode.REGISTER_BLOB_FAILURE, response.getMessage());
Expand Down

0 comments on commit a9c0fd0

Please sign in to comment.