Skip to content

Commit c9a5cf9

Browse files
darynaishchenkooctavia-squidington-iii
andauthored
fix(file-based): update error message for FileSizeLimitError (#842)
Co-authored-by: octavia-squidington-iii <contact@airbyte.com>
1 parent 0ac72f5 commit c9a5cf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

airbyte_cdk/sources/file_based/file_based_stream_reader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ def upload(
172172
file_size = file.size
173173

174174
if file_size > self.FILE_SIZE_LIMIT:
175-
message = f"File size exceeds the {self.FILE_SIZE_LIMIT / 1e9} GB limit."
175+
message = (
176+
f"File size exceeds the {self.FILE_SIZE_LIMIT / 1e9} GB limit. File URI: {file.uri}"
177+
)
176178
raise FileSizeLimitError(
177179
message=message, internal_message=message, failure_type=FailureType.config_error
178180
)

0 commit comments

Comments
 (0)