Skip to content

Commit 0386583

Browse files
committed
Update error message
1 parent bead494 commit 0386583

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sagemaker/modules/train/model_trainer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,8 +835,10 @@ def _prepare_train_script(
835835
)
836836
execute_driver = EXECUTE_BASIC_SCRIPT_DRIVER
837837
else:
838+
# This should never be reached, as the source_code should have been validated.
838839
raise ValueError(
839-
f"Invalid configuration, please provide a valid SourceCode: {source_code}"
840+
f"Unsupported SourceCode or DistributedConfig: {source_code}, {distributed}."
841+
+ f"Please provide a valid configuration with atleast one of 'command' or entry_script'."
840842
)
841843

842844
train_script = TRAIN_SCRIPT_TEMPLATE.format(

0 commit comments

Comments
 (0)