Improve error message when LightningCLI(run=False)
but user passes a stage as argument
#18203
Labels
3rd party
Related to a 3rd-party
feature
Is an improvement or enhancement
lightningcli
pl.cli.LightningCLI
Description & Motivation
This is a proposal to adjust the current error message
to something more meaningful when
run=False
and passing a stage is not needed. Below is a minimal example that demonstrates this:Run it like so:
Error:
Pitch
Adjust the error for this case to a message like this, pointing out that
run=False
was configured.Alternatives
Keep as is
Additional context
Raised by a question of a user in slack channel
cc @Borda @carmocca @mauvilsa
The text was updated successfully, but these errors were encountered: