diff --git a/airbyte_cdk/sources/file_based/file_based_stream_reader.py b/airbyte_cdk/sources/file_based/file_based_stream_reader.py index 4c0cb7c9e..f97bc3f9a 100644 --- a/airbyte_cdk/sources/file_based/file_based_stream_reader.py +++ b/airbyte_cdk/sources/file_based/file_based_stream_reader.py @@ -172,7 +172,9 @@ def upload( file_size = file.size if file_size > self.FILE_SIZE_LIMIT: - message = f"File size exceeds the {self.FILE_SIZE_LIMIT / 1e9} GB limit." + message = ( + f"File size exceeds the {self.FILE_SIZE_LIMIT / 1e9} GB limit. File URI: {file.uri}" + ) raise FileSizeLimitError( message=message, internal_message=message, failure_type=FailureType.config_error )