Skip to content

Commit 9b37bc5

Browse files
committed
handle case of missing config
1 parent fac853c commit 9b37bc5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

airbyte_cdk/entrypoint.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ def run(self, parsed_args: argparse.Namespace) -> Iterable[str]:
197197
AirbyteEntrypoint.airbyte_message_to_string,
198198
self.discover(source_spec, empty_config),
199199
)
200+
elif parsed_args.config is None:
201+
# Raise a helpful error message if we reach here with no config.
202+
raise ValueError("The '--config' arg is required but was not provided.")
200203
else:
201204
raw_config = self.source.read_config(parsed_args.config)
202205
config = self.source.configure(raw_config, temp_dir)

0 commit comments

Comments
 (0)