Skip to content

Commit d8b6bbd

Browse files
authored
Clarify error message by mentioning "spawn" (#19142)
1 parent 2a8789e commit d8b6bbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lightning/fabric/fabric.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,8 @@ def launch(self, function: Callable[["Fabric"], Any] = _do_nothing, *args: Any,
828828
)
829829
elif isinstance(self.strategy.launcher, (_MultiProcessingLauncher, _XLALauncher)):
830830
raise TypeError(
831-
f"To use the `{type(self.strategy).__name__}` strategy, `.launch()` needs to be called with a function"
832-
" that contains the code to launch in processes."
831+
f"To spawn processes with the `{type(self.strategy).__name__}` strategy, `.launch()` needs to be called"
832+
" with a function that contains the code to launch in processes."
833833
)
834834
return self._wrap_and_launch(function, self, *args, **kwargs)
835835

0 commit comments

Comments
 (0)