Skip to content

Commit 63409c5

Browse files
author
Erick Corona
committed
Fix index only reason available
1 parent 98d91fb commit 63409c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

airbyte-cdk/python/airbyte_cdk/sources/file_based/file_based_source.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ def check_connection(self, logger: logging.Logger, config: Mapping[str, Any]) ->
147147
message=f"{errors[0]}",
148148
failure_type=FailureType.config_error,
149149
)
150+
if len(errors) == 1 and len(tracebacks) == 0:
151+
raise AirbyteTracedException(
152+
message=f"{errors[0]}",
153+
failure_type=FailureType.config_error,
154+
)
150155
elif len(errors) > 1:
151156
raise AirbyteTracedException(
152157
internal_message="\n".join(tracebacks),

0 commit comments

Comments
 (0)