Skip to content

Commit bae5385

Browse files
authored
Clarify that mix do early-exits on error (#14134)
1 parent b53ceff commit bae5385

File tree

1 file changed

+13
-1
lines changed
  • lib/mix/lib/mix/tasks

1 file changed

+13
-1
lines changed

lib/mix/lib/mix/tasks/do.ex

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ defmodule Mix.Tasks.Do do
44
@shortdoc "Executes the tasks separated by plus"
55

66
@moduledoc """
7-
Executes the tasks separated by `+`:
7+
Executes the tasks separated by `+`, aborting if any task errors.
8+
9+
Here is an example:
810
911
$ mix do compile --list + deps
1012
@@ -41,6 +43,16 @@ defmodule Mix.Tasks.Do do
4143
Since then, the `+` operator has been introduced as a
4244
separator for better support on Windows terminals.
4345
46+
## Error handling
47+
48+
If any task in the list of tasks exits with an error,
49+
no subsequent tasks will be run. For instance:
50+
51+
$ mix do compile + test
52+
53+
If the compilation step fails, the tests will not be
54+
attempted.
55+
4456
## Command line options
4557
4658
* `--app` - limit recursive tasks to the given apps.

0 commit comments

Comments
 (0)